Updated list from source (#1066) #1717
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
go-version: | |
- "1.21" | |
- "1.22" | |
- "1.23" | |
platform: [ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Setup env | |
run: | | |
echo "GOPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
echo "CURRENT_WORKSPACE=$GITHUB_WORKSPACE/src/github.com/${{ github.repository }}" >> $GITHUB_ENV | |
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
with: | |
path: ${{ env.CURRENT_WORKSPACE }} | |
- name: Get dependencies | |
run: go get -v ./... | |
working-directory: ${{ env.CURRENT_WORKSPACE }} | |
- name: Run go vet | |
run: go vet ./... | |
working-directory: ${{ env.CURRENT_WORKSPACE }} | |
- name: Run tests | |
run: ./test.sh | |
working-directory: ${{ env.CURRENT_WORKSPACE }} | |
- uses: codecov/codecov-action@v5 | |
with: | |
files: ${{ env.CURRENT_WORKSPACE }}/coverage.txt | |
verbose: true |