Skip to content

Commit

Permalink
Add Go 1.20 support to CI
Browse files Browse the repository at this point in the history
Adds a Go compiler matrix to CI for testing of latest Go versions.
Updates and pins to major version GitHub actions packages.

Signed-off-by: Austin Vazquez <macedonv@amazon.com>
  • Loading branch information
austinvazquez committed Mar 16, 2023
1 parent 15d2a5a commit 167ffb4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ on:
jobs:
run:
runs-on: ubuntu-latest

strategy:
matrix:
go: [1.19.x, 1.20.x]

steps:
- name: checkout source code
uses: actions/checkout@master
uses: actions/checkout@v3

- name: setup go environment
uses: actions/setup-go@v1
uses: actions/setup-go@v4
with:
go-version: '1.17.2'
go-version: ${{ matrix.go }}

- name: create go.mod
run: |
Expand All @@ -32,7 +37,6 @@ jobs:

- name: run tests
run: |
export PATH="$(go env GOPATH)/bin:${PATH}"
set -x
make install.tools
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ on:
jobs:
run:
runs-on: ubuntu-latest

strategy:
matrix:
go: [1.19.x, 1.20.x]

steps:
- name: checkout source code
uses: actions/checkout@master
uses: actions/checkout@v3

- name: setup go environment
uses: actions/setup-go@v1
uses: actions/setup-go@v4
with:
go-version: '1.17.2'
go-version: ${{ matrix.go }}

- name: create go.mod
run: |
Expand All @@ -32,7 +37,6 @@ jobs:

- name: run tests
run: |
export PATH="$(go env GOPATH)/bin:${PATH}"
set -x
make install.tools
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ endif
install.tools: .install.gitvalidation

.install.gitvalidation:
go get -u github.com/vbatts/git-validation
go install github.com/vbatts/git-validation@v1.2.0

clean:
rm -rf $(OUTPUT_DIRNAME) *~
Expand Down

0 comments on commit 167ffb4

Please sign in to comment.