Skip to content

Commit e51e0ee

Browse files
authored
CI: update test workflow deps (#40)
1 parent 327e8a9 commit e51e0ee

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

.github/workflows/test.yml

+19-21
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,29 @@ on:
1212

1313
jobs:
1414
test:
15+
name: 🧪 Test
1516
runs-on: ubuntu-latest
1617

1718
steps:
18-
- name: Checkout code 🛎️
19-
uses: actions/checkout@v2
19+
- name: Checkout code 🛎️
20+
uses: actions/checkout@v4
2021

21-
- name: Set up Go 🧰
22-
uses: actions/setup-go@v3
23-
with:
24-
go-version: 1.22.4
22+
- name: Set up Go 🧰
23+
uses: actions/setup-go@v5
24+
with:
25+
go-version-file: go.mod
2526

26-
- name: Install dependencies ⏬
27-
run: go mod tidy
27+
- name: Run tests 🛠️
28+
run: make test
2829

29-
- name: Run tests 🛠️
30-
run: make test
30+
- name: Report coverage 📈
31+
run: go test -coverprofile=coverage.out ./...
3132

32-
- name: Report coverage 📈
33-
run: go test -coverprofile=coverage.out ./...
34-
35-
- name: Upload coverage to Codecov 📤
36-
uses: codecov/codecov-action@v2
37-
with:
38-
files: coverage.out
39-
flags: unittests
40-
name: codecov-umbrella
41-
fail_ci_if_error: true
42-
token: ${{ secrets.CODECOV_TOKEN }}
33+
- name: Upload coverage to Codecov 📤
34+
uses: codecov/codecov-action@v4
35+
with:
36+
files: coverage.out
37+
flags: unittests
38+
name: codecov-umbrella
39+
fail_ci_if_error: true
40+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)