chore(deps): update npm non-major dependencies #2165
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: Build and run unit tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- name: install node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
registry-url: 'https://npm.pkg.github.com' | |
- name: install dependencies | |
env: | |
GITHUB_PACKAGES_PAT: ${{ secrets.GITHUB_TOKEN }} | |
run: yarn --immutable | |
- name: run build | |
run: yarn build | |
- name: run eslint | |
run: yarn lint | |
- name: run tests | |
run: yarn test --coverage | |
- name: Codecov | |
uses: codecov/codecov-action@v3.1.4 | |
with: | |
directory: ./coverage | |
fail_ci_if_error: true |