-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.65 KB
/
test.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: 🧪 Test CI
on:
workflow_call:
secrets:
token:
required: true
rootpass:
required: true
jobs:
run-tests:
runs-on: ubuntu-latest
# Set a reasonable timeout, 120x shorter than GitHub's default 6 hours
timeout-minutes: 5
strategy:
matrix:
node: [21, 22]
name: 🧪 🔢 Run Tests with Node.js Version ${{ matrix.node }}
steps:
- name: 📂 Check out Git repository
uses: actions/checkout@v4
- name: 🛠️ Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: 🛠️ Set-up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: 📦 Install dependencies
run: pnpm install
# CHANGE/ADD/SETUP YOUR ADDITIONAL TEST COMMANDS AND TEST ACTIONS BELOW HERE:
- name: 🧪 📊 Test and coverage
run: pnpm test
- name: 📤 📊 Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
# https://apache.googlesource.com/airflow-codecov-action/+/f8c87eb84eff353c49fcb2f295110a82afdca7ae/README.md#arguments
with:
token: ${{ secrets.token }} # not required for public repos
# file: ./coverage.xml # optional
# files: ./coverage1.xml,./coverage2.xml # optional
# directory: ./coverage/reports/ # optional
flags: unittests # optional
# env_vars: OS,NODE # optional
name: ☂️ codecov-umbrella # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)