Skip to content

Commit 7c613a2

Browse files
authored
ci: fix secret references (#5)
1 parent 4f2c667 commit 7c613a2

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.github/workflows/reusable-codeception.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ on:
4343
type: boolean
4444
default: true
4545

46+
secrets:
47+
CODECOV_TOKEN:
48+
description: 'Codecov upload token'
49+
required: false
50+
4651
jobs:
4752
codeception:
4853
permissions: {}
@@ -105,15 +110,15 @@ jobs:
105110
106111
- name: Run Codeception acceptance tests
107112
if: ${{ inputs.acceptance }}
108-
run: npm run test:codecept run acceptance ${{ secrets.ACTIONS_STEP_DEBUG && '--debug' || '' }}
113+
run: npm run test:codecept run acceptance ${{ runner.debug == '1' && '--debug' || '' }}
109114

110115
- name: Run Codeception functional tests
111116
if: ${{ inputs.functional }}
112-
run: npm run test:codecept run functional ${{ secrets.ACTIONS_STEP_DEBUG && '--debug' || '' }}
117+
run: npm run test:codecept run functional ${{ runner.debug == '1' && '--debug' || '' }}
113118

114119
- name: Run Codeception integration tests${{ inputs.coverage && ' (coverage)' || '' }}
115120
if: ${{ inputs.wpunit }}
116-
run: npm run test:codecept run wpunit ${{ inputs.coverage && '--coverage --coverage-xml --coverage-html' || '' }} ${{ secrets.ACTIONS_STEP_DEBUG && '--debug' || '' }}
121+
run: npm run test:codecept run wpunit ${{ inputs.coverage && '--coverage --coverage-xml --coverage-html' || '' }} ${{ runner.debug == '1' && '--debug' || '' }}
117122

118123
- name: Upload test failure artifacts
119124
if: failure()

.github/workflows/reusable-jest.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
required: false
99
type: boolean
1010
default: true
11+
secrets:
12+
CODECOV_TOKEN:
13+
description: 'Codecov upload token'
14+
required: false
1115

1216
permissions: {}
1317

.github/workflows/reusable-phpunit.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ on:
2323
type: boolean
2424
default: false
2525

26+
secrets:
27+
CODECOV_TOKEN:
28+
description: 'Codecov upload token'
29+
required: false
30+
2631
permissions: {}
2732

2833
jobs:

0 commit comments

Comments
 (0)