Skip to content

Commit 70949e0

Browse files
committed
Testing Lab - Added CI with Github Actions.
1 parent c699d1a commit 70949e0

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/testing-lab.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Testing Lab CI
2+
3+
on:
4+
push:
5+
paths:
6+
- '5 - Testing/Ejercicios/Testing-Lab/**'
7+
pull_request:
8+
paths:
9+
- '5 - Testing/Ejercicios/Testing-Lab/**'
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: ./5 - Testing/Ejercicios/Testing-Lab
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: '18'
25+
cache: 'npm'
26+
cache-dependency-path: './5 - Testing/Ejercicios/Testing-Lab/package-lock.json'
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: Run tests
32+
run: npm test
33+
34+
- name: Upload coverage reports to Codecov
35+
uses: codecov/codecov-action@v3
36+
with:
37+
directory: ./5 - Testing/Ejercicios/Testing-Lab/coverage
38+
flags: unittests

0 commit comments

Comments
 (0)