diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index eb09f37ba..a6e35a8f7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,6 +2,7 @@ name: build on: workflow_dispatch: + pull_request: branches: - master @@ -17,10 +18,11 @@ jobs: build: strategy: matrix: - go: [1.x] + go: [1.19, 1.x] os: [ubuntu-latest, windows-latest, macos-latest] - runs-on: ${{ matrix.os }} - name: Go ${{ matrix.go }} ${{ matrix.os }} + + runs-on: ${{ matrix.os }} + name: Go ${{ matrix.go }} ${{ matrix.os }} steps: - name: Checkout uses: actions/checkout@v3 @@ -40,10 +42,10 @@ jobs: examples: strategy: matrix: - go: [1.x] os: [ubuntu-latest, windows-latest, macos-latest] - runs-on: ${{ matrix.os }} - name: Examples ${{ matrix.go }} ${{ matrix.os }} + + runs-on: ${{ matrix.os }} + name: Examples ${{ matrix.os }} steps: - name: Checkout uses: actions/checkout@v3 @@ -51,7 +53,7 @@ jobs: - name: Install Go uses: actions/setup-go@v4.0.1 with: - go-version: ${{ matrix.go }} + go-version: 1.x cache: true - name: Build @@ -118,6 +120,7 @@ jobs: with: version: v1.51.2 working-directory: ${{ matrix.dir }} + skip-pkg-cache: true coverage: runs-on: ubuntu-latest diff --git a/go.mod b/go.mod index 9758db045..df12dabc9 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/gavv/httpexpect/v2 -go 1.17 +go 1.19 require ( github.com/ajg/form v1.5.1