Merge pull request #174 from unb-mds/Documentation #13
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: Testes Unitários utilizando Jest | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
unit_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js 20.16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.16 | |
- name: Install Yarn v1.22 | |
run: | | |
npm install -g [email protected] | |
- name: Install dependencies | |
run: yarn | |
- name: Run Jest Tests | |
run: yarn test |