Skip to content

Merge pull request #168 from EladHeller/dependabot/npm_and_yarn/devel… #344

Merge pull request #168 from EladHeller/dependabot/npm_and_yarn/devel…

Merge pull request #168 from EladHeller/dependabot/npm_and_yarn/devel… #344

Workflow file for this run

name: CI
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache node modules
uses: actions/cache@v4
env:
cache-name: cache-node-modules-v1
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
- name: Install modules
run: npm ci
- name: Type check
run: npm run type-check
- name: Unit tests
run: npm run test:coverage
- name: Run ESLint
run: npm run lint:test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}