diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index d42481f..606a3f6 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -3,26 +3,20 @@ on: pull_request jobs: unit_tests: name: unit tests - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 steps: - name: Cancel Previous Actions - uses: styfle/cancel-workflow-action@0.4.1 + uses: styfle/cancel-workflow-action@0.11.0 with: access_token: ${{ github.token }} - - name: Set up Go 1.14 - uses: actions/setup-go@v1 - with: - go-version: 1.14 - id: go - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - - uses: actions/cache@v1 + - name: Set up Go + uses: actions/setup-go@v4 with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- + go-version-file: "go.mod" + id: go - name: Test run: make install-go-tools run-tests