Merge pull request #148 from gotoeveryone/dependabot/npm_and_yarn/tai… #339
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
container: | |
image: node:18.16 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache modules | |
uses: actions/cache@v3 | |
id: node_cache | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-node_modules-${{ hashFiles('**/package-lock.json') }} | |
- name: Install dependencies | |
if: ${{ steps.node_cache.outputs.cache-hit != 'true' }} | |
run: npm i | |
- name: Run lint | |
run: npm run lint | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: node:18.16 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache modules | |
uses: actions/cache@v3 | |
id: node_cache | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-node_modules-${{ hashFiles('**/package-lock.json') }} | |
- name: Install dependencies | |
if: ${{ steps.node_cache.outputs.cache-hit != 'true' }} | |
run: npm i | |
- name: Run test | |
run: npm test |