Skip to content

Commit

Permalink
Adjusted CI action in termcols to new practices
Browse files Browse the repository at this point in the history
  • Loading branch information
mdm-code committed Feb 4, 2024
1 parent 3588612 commit 74b625f
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,21 @@ jobs:
build:
strategy:
matrix:
go-version: [ '1.19', '1.21' ]
os: [ ubuntu-latest, macos-latest ]
go: [ '1.21' ]
os: [ windows-latest, ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
name: ${{ matrix.go }}/${{ matrix.os }}

steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
go-version: ${{ matrix.go }}

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install dependencies
run: |
Expand All @@ -32,10 +35,15 @@ jobs:
run: make build

- name: Test
run: go test -v -coverprofile coverage.txt -covermode atomic ./...
run: go test -v -coverprofile='coverage.txt' -covermode='atomic' ./...

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

release-check:
uses: ./.github/workflows/release.yaml
with:
args: --snapshot

0 comments on commit 74b625f

Please sign in to comment.