Skip to content

Commit

Permalink
Merge pull request #11 from NYPL/feature/DR-2573/github-actions
Browse files Browse the repository at this point in the history
DR-2573 GitHub actions
  • Loading branch information
7emansell authored Oct 20, 2023
2 parents 523c4ed + c8a5d88 commit b949ab2
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# For all pushes, this workflow will
# - Install deps
# - Lint
# - Test
name: CI

on: push

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
env:
CI: true
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache and install node modules
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: Lint
run: npm run lint

test:
name: Test
runs-on: ubuntu-latest
env:
CI: true
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache and install node modules
uses: bahmutov/npm-install@v1
- name: Test
run: npm run test:ci
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,3 +323,7 @@ You can lint your code independently of this by running:
```sh
$ npm run lint
```

## Github Actions

All pushes to this repo will be checked with `npm test` and `npm lint`.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"start": "next start",
"lint": "next lint",
"test": "jest",
"test:ci": "jest --ci --config=jest.config.ts",
"prepare": "husky install"
},
"lint-staged": {
Expand Down
2 changes: 1 addition & 1 deletion src/data/lanes.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@
"type": "CollectionLane"
}
}
}
}

0 comments on commit b949ab2

Please sign in to comment.