-
Notifications
You must be signed in to change notification settings - Fork 121
36 lines (28 loc) · 960 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: test
on: push
env:
FOLDER_PATH_TEST_UNIT_REPORT: ./test-unit-report
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Setup Node.js ⚙️ - Cache dependencies ⚡ - Install dependencies 🔧
uses: ./.github/workflows/actions/setup_node-cache_dep-install_dep
- name: Test 🧪
run: npm run test-report
- name: Upload report 📈
uses: nwtgck/actions-netlify@v3
with:
publish-dir: ${{ env.FOLDER_PATH_TEST_UNIT_REPORT }}
production-deploy: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID_TEST_UNIT_REPORT }}
- name: Upload coverage to Codecov 📶
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true