Skip to content

Commit d34ab7f

Browse files
committed
Add (icicdr) github ci debug #4
1 parent fa2b9df commit d34ab7f

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

.github/workflows/null-object.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: null-object package test with coverage
33
on:
44
push:
55
branches:
6-
# - never # Skip the workflow for debugging purposes;
6+
# - never # Skip the workflow for debugging purposes;
77
# - implement/package-ci # NB: For debugging only
88
- develop
99
- master
@@ -30,8 +30,19 @@ jobs:
3030
with:
3131
node-version: 20
3232

33-
- name: Install dependencies
34-
run: npm install
33+
# Install dependencies and build the package to test in .usage folder
34+
- name: Install dependencies and build the package
35+
run: |
36+
npm install
37+
cd .usage && npm install
38+
cd ../
39+
npm run package:build
40+
41+
- name: Testing the latest build at usage .usage subfolder
42+
working-directory: ./.usage
43+
run: |
44+
npm install
45+
npm run test:usage
3546
3647
- name: Run tests and collect coverage
3748
# NB: See https://app.codecov.io/gh/WhereJuly/60-1-oas-markdown-merger/tests/new
@@ -44,8 +55,7 @@ jobs:
4455
- name: Create and push tag on master branch only
4556
# NB: For debugging
4657
# if: github.ref_name == 'implement/package-ci'
47-
# if: github.ref_name == 'master'
48-
if: github.ref_name == 'develop'
58+
if: github.ref_name == 'master'
4959
run: |
5060
# Extract package name and version from package.json
5161
PACKAGE_NAME=$(jq -r .name package.json)
@@ -65,8 +75,7 @@ jobs:
6575
- name: Upload coverage reports to Codecov
6676
# NB: For debugging
6777
# if: github.ref_name == 'implement/package-ci'
68-
# if: github.ref_name == 'master'
69-
if: github.ref_name == 'develop'
78+
if: github.ref_name == 'master'
7079
uses: codecov/codecov-action@v5
7180
with:
7281
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)