Skip to content

Commit ae53daf

Browse files
committed
chore: update workflows
1 parent ffbb39a commit ae53daf

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ on:
88
jobs:
99
check:
1010
uses: ./.github/workflows/lint-test.yml
11-
env:
11+
secrets:
1212
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/lint-test.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1-
name: Lint
21
on:
32
workflow_call:
3+
secrets:
4+
CODECOV_TOKEN:
5+
required: true
6+
47
jobs:
58
lint-and-test:
69
runs-on: ubuntu-latest
10+
env:
11+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
712
steps:
813
- name: Checkout
9-
uses: actions/checkout@v3
10-
- name: Setup Node.js
14+
- uses: actions/checkout@v3
15+
- name: Setup Node
1116
uses: actions/setup-node@v3
1217
with:
1318
node-version: 'lts/*'
@@ -21,5 +26,4 @@ jobs:
2126
- name: Upload coverage to Codecov
2227
uses: codecov/codecov-action@v4
2328
with:
24-
token: ${{ inputs.CODECOV_TOKEN }}
25-
verbose: true
29+
token: ${{ env.CODECOV_TOKEN }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
lint-and-test:
88
uses: ./.github/workflows/lint-test.yml
9-
env:
9+
secrets:
1010
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1111
release:
1212
needs: lint-and-test

0 commit comments

Comments
 (0)