forked from ironhack-labs/lab-javascript-basic-algorithms
-
Notifications
You must be signed in to change notification settings - Fork 0
23 lines (23 loc) · 658 Bytes
/
test.yml
File metadata and controls
23 lines (23 loc) · 658 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Automated Testing
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Load code
uses: actions/checkout@v2
- name: Prepare environment
uses: actions/setup-node@v2
with:
node-version: '16'
check-latest: true
- name: Install dependencies
run: npm i
- name: Run tests
run: npm run test -- --ci --reporters=default --reporters=jest-junit
- name: Reports the results of tests
uses: IgnusG/jest-report-action@v2.3.3
if: always()
with:
access-token: ${{ secrets.GITHUB_TOKEN }}
run-name: test