diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a15cbec..75a9ed7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,23 +7,27 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - go-version: [1.17, 1.12] + go-version: ['stable'] os: [macos-latest, windows-latest, ubuntu-latest] + include: + - os: ubuntu-latest + go-version: '' steps: - name: Install dependencies (linux) if: ${{ matrix.os == 'ubuntu-latest' }} run: sudo apt-get update && sudo apt-get install libgl1-mesa-dev - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: ${{matrix.go-version}} - - name: Check out module uses: actions/checkout@v2 with: fetch-depth: 1 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: ${{matrix.go-version}} + go-version-file: go.mod + - name: Run tests run: go test -v -race ./...