Skip to content

Commit 1a0b7fa

Browse files
committed
Update CI workflow (fixes #12)
1 parent 848f3c0 commit 1a0b7fa

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/ci.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,14 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Set up Go
15-
uses: actions/setup-go@v1
15+
uses: actions/setup-go@v2
1616
with:
17-
go-version: 1.16
18-
id: go
17+
go-version: ^1
1918
- name: Checkout
2019
uses: actions/checkout@v1
2120
- name: Make
2221
run: make ci
2322
- name: Upload Coverage Reports
2423
if: success()
2524
run: |
26-
test ! -z "$TOKEN"
27-
bash <(curl -s https://codecov.io/bash) -t "$TOKEN" -B "${{ github.ref }}"
28-
env:
29-
TOKEN: "${{ secrets.CODECOV_TOKEN }}"
25+
[[ -z "${{ secrets.CODECOV_TOKEN }}" ]] || bash <(curl -s https://codecov.io/bash) -t "${{ secrets.CODECOV_TOKEN }}" -B "${{ github.ref }}"

0 commit comments

Comments
 (0)