added taskdef.json #5
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
validate: | |
name: Validate | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check the repository | |
uses: actions/checkout@v2 | |
# Setup Node.js | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18.x | |
cache: yarn | |
# Installing the project dependencies | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
# Validation | |
- name: Running `yarn validate` | |
run: yarn validate | |
# Run the tests | |
- name: Run tests with coverage | |
run: yarn test --coverage |