mirror of
https://github.com/opencontainers/runtime-spec.git
synced 2026-02-05 09:45:57 +01:00
Add Go 1.20 support to CI
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>
This commit is contained in:
12
.github/workflows/build-pr.yml
vendored
12
.github/workflows/build-pr.yml
vendored
@@ -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: |
|
||||
@@ -32,7 +37,6 @@ jobs:
|
||||
|
||||
- name: run tests
|
||||
run: |
|
||||
export PATH="$(go env GOPATH)/bin:${PATH}"
|
||||
set -x
|
||||
make install.tools
|
||||
|
||||
|
||||
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@@ -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: |
|
||||
@@ -32,7 +37,6 @@ jobs:
|
||||
|
||||
- name: run tests
|
||||
run: |
|
||||
export PATH="$(go env GOPATH)/bin:${PATH}"
|
||||
set -x
|
||||
make install.tools
|
||||
|
||||
|
||||
Reference in New Issue
Block a user