Merge branch 'main' into tests/add-tests #1616
Workflow file for this run
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: Run Coverage, Lint Files and Build Project | |
on: push | |
jobs: | |
lint-test-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node 18 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- name: Install system dependencies for canvas | |
run: sudo apt-get install -y libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev build-essential g++ | |
- name: Install dependencies | |
run: | | |
npm install -g yarn | |
yarn install | |
- name: Run lint | |
run: yarn lint | |
- name: Run tests and coverage | |
run: yarn test:coverage | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Build application | |
run: yarn build |