-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.51 KB
/
deliver.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Deliver the Pack
on:
push:
branches:
# - never # Skip the workflow for debugging purposes;
- implement/package/ci
- develop # So far build the image from develop branch;
# - master
# paths:
# - ".github/workflows/food-service.yml"
# - "implementation/**"
workflow_dispatch:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_AUTH_TOKEN: ${{ secrets.GH_AUTH_TOKEN }} # NB: Cannot use 'GITHUB_' prefix
name: Test
steps:
- uses: actions/checkout@v4
- name: Set up Node 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Install dependencies for .usages subfolder
working-directory: ./.usage
run: npm install
- name: Run tests and collect coverage
# NB: See https://app.codecov.io/gh/WhereJuly/62-http-convenience-pack/tests/new
# NB: See https://app.codecov.io/gh/WhereJuly/62-http-convenience-pack/new
# Here need to run my tests with coverage and reporter JUNIT
# test:foundation --reporter=junit --outputFile=test-report.junit.xml
# run: npm run test:foundation -- \
# --reporter=junit --outputFile=test-report.junit.xml --reporter=verbose
run: npm run test:foundation -- --coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}