feat: SP-6428 Setup dev tools and process #5
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: Test | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
strategy: | |
matrix: | |
node-version: [18.x] | |
name: Node | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ${{ matrix.node-version }} | |
uses: actions/checkout@v3 | |
- name: Setup and Test ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- name: Install node modules | |
shell: bash | |
run: yarn | |
- name: Unit testing and collect coverage | |
shell: bash | |
run: yarn test:unit | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4-beta | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |