From a92676ef7563190b3a1efc49ab53adf61845d8e4 Mon Sep 17 00:00:00 2001 From: Antonio Pagano <apagano@wawand.co> Date: Sat, 23 Oct 2021 10:47:54 -0500 Subject: [PATCH 1/3] moving to Go 1.16 on latest version --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index c20ed96..a0d2880 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/gobuffalo/tags/v3 -go 1.13 +go 1.16 require ( github.com/fatih/structs v1.1.0 From f52a7961a33eafbcfa9bb40800d2869f500152b9 Mon Sep 17 00:00:00 2001 From: Antonio Pagano <apagano@wawand.co> Date: Sat, 23 Oct 2021 10:49:36 -0500 Subject: [PATCH 2/3] changing workflow --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0e52eb6..2651d8e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,7 +7,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - go-version: [1.12.x, 1.13.x] + go-version: [1.16.x, 1.17.x] os: [macos-latest, windows-latest, ubuntu-latest] steps: - name: Checkout Code From 7a17e326f611125e5d79c6559d10d53e23090822 Mon Sep 17 00:00:00 2001 From: Antonio Pagano <apagano@wawand.co> Date: Sat, 23 Oct 2021 11:16:53 -0500 Subject: [PATCH 3/3] adding actions config --- .github/workflows/tests.yml | 40 +++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2651d8e..69e9bca 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,22 +1,32 @@ name: Tests -on: [push] +on: + push: + branches: [main] + pull_request: + branches: [main] + jobs: - tests-on: - name: ${{matrix.go-version}} ${{matrix.os}} + name: ${{ matrix.os }} - Go v${{ matrix.go-version }} runs-on: ${{ matrix.os }} strategy: matrix: - go-version: [1.16.x, 1.17.x] - os: [macos-latest, windows-latest, ubuntu-latest] + go-version: + - "1.16.x" + - "1.17.x" + os: + - "macos-latest" + - "windows-latest" + - "ubuntu-latest" + steps: - - name: Checkout Code - uses: actions/checkout@v1 - with: - fetch-depth: 1 - - name: Test - env: - GOPROXY: https://proxy.golang.org - run: | - go mod tidy -v - go test -race ./... + - uses: actions/checkout@v2 + - name: Setup Go ${{ matrix.go }} + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + + - name: Test + run: | + go mod tidy -v + go test -tags "sqlite" -cover ./... \ No newline at end of file