Skip to content

Commit

Permalink
Update tests workflow steps
Browse files Browse the repository at this point in the history
  • Loading branch information
ralongit committed Aug 8, 2024
1 parent 697c27d commit caf90a6
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,34 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

# You can test your matrix by printing the current Go version
- name: Display Go version
run: go version

- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.3'
- name: Clean Go module cache
run: go clean -modcache

- name: Remove go.sum
run: rm go.sum

- name: Tidy up Go modules
run: go mod tidy

- name: Install dependencies
run: |
go get .
run: go get -u ./...

- name: Build
run: go build -v ./...

- name: Test with the Go CLI
run: go test -v ./...

- name: Test with Go
run: go test -json > TestResults-${{ matrix.go-version }}.json

- name: Upload Go test results
uses: actions/upload-artifact@v3
with:
name: Go-results-${{ matrix.go-version }}
path: TestResults-${{ matrix.go-version }}.json
path: TestResults-${{ matrix.go-version }}.json

0 comments on commit caf90a6

Please sign in to comment.