Skip to content

Commit

Permalink
CI: update test workflow deps (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
kynrai authored Jun 11, 2024
1 parent 327e8a9 commit e51e0ee
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,29 @@ on:

jobs:
test:
name: πŸ§ͺ Test
runs-on: ubuntu-latest

steps:
- name: Checkout code πŸ›ŽοΈ
uses: actions/checkout@v2
- name: Checkout code πŸ›ŽοΈ
uses: actions/checkout@v4

- name: Set up Go 🧰
uses: actions/setup-go@v3
with:
go-version: 1.22.4
- name: Set up Go 🧰
uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: Install dependencies ⏬
run: go mod tidy
- name: Run tests πŸ› οΈ
run: make test

- name: Run tests πŸ› οΈ
run: make test
- name: Report coverage πŸ“ˆ
run: go test -coverprofile=coverage.out ./...

- name: Report coverage πŸ“ˆ
run: go test -coverprofile=coverage.out ./...

- name: Upload coverage to Codecov πŸ“€
uses: codecov/codecov-action@v2
with:
files: coverage.out
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Codecov πŸ“€
uses: codecov/codecov-action@v4
with:
files: coverage.out
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit e51e0ee

Please sign in to comment.