Skip to content

Enhance test coverage: Add Go 1.20 to matrix and enable data race detection #222

Enhance test coverage: Add Go 1.20 to matrix and enable data race detection

Enhance test coverage: Add Go 1.20 to matrix and enable data race detection #222

Workflow file for this run

---
name: Testing
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types:
- created
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: ./go.mod
- uses: golangci/golangci-lint-action@v3
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
go-version: [ 1.18, 1.19, 1.20 ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install docker-compose v2
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release -R docker/compose download -p docker-compose-linux-x86_64
mv -f docker-compose-linux-x86_64 docker-compose
sudo mv /usr/local/bin/docker-compose /usr/local/bin/docker-compose-v2
sudo install docker-compose /usr/local/bin/
docker-compose --version
- run: task test
tets-summary:
name: Test
needs: test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- run: echo "All good!"