From 858f3742be6f20bfaf015114f90e9dbb5991e668 Mon Sep 17 00:00:00 2001 From: Evan Phoenix Date: Mon, 11 Sep 2023 10:54:52 -0700 Subject: [PATCH] Introduce with and without go modules testing --- .github/workflows/go-mod.yml | 23 +++++++++++++++++++++++ .github/workflows/go.yml | 4 ++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/go-mod.yml diff --git a/.github/workflows/go-mod.yml b/.github/workflows/go-mod.yml new file mode 100644 index 0000000..635a88a --- /dev/null +++ b/.github/workflows/go-mod.yml @@ -0,0 +1,23 @@ +name: Go Modules + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.18 + + - name: Test + run: | + cd v5 + go get ./... + go test -v ./... diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index fed7216..aeeede6 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,4 +1,4 @@ -name: Go +name: Go (No Modules) on: push: @@ -19,7 +19,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.18 + go-version: 1.15 - name: Test run: |