Skip to content

Merge pull request #148 from gotoeveryone/dependabot/npm_and_yarn/tai… #339

Merge pull request #148 from gotoeveryone/dependabot/npm_and_yarn/tai…

Merge pull request #148 from gotoeveryone/dependabot/npm_and_yarn/tai… #339

Workflow file for this run

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