Skip to content

Commit

Permalink
Add github action config that runs eslint.
Browse files Browse the repository at this point in the history
  • Loading branch information
jg210 committed Mar 7, 2024
1 parent 0ba6b5d commit 549c767
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: checks

on: push

jobs:
build:
runs-on: ubuntu-20.04
permissions:
contents: read
checks: write

steps:
- uses: actions/checkout@v4.1.1

- uses: actions/setup-node@v4.0.1
with:
node-version-file: '.node-version'

- name: setup gradle
uses: gradle/actions/setup-gradle@v3

- name: npm install
run: |
. environment
npm ci
- name: npm run ci
run: |
. environment
npm run ci
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"lint": "eslint ."
"lint": "eslint .",
"ci": "npm run lint"
},
"dependencies": {
"@tanstack/react-query": "5.25.0",
Expand Down

0 comments on commit 549c767

Please sign in to comment.