Get ready for go1.22 (#186) #107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
- main | |
pull_request: | |
branches: | |
- master | |
- main | |
jobs: | |
test: | |
name: test | |
strategy: | |
matrix: | |
go-version: | |
- 1.19.x # a minimum supported version(from go.mod) | |
- 1.20.x | |
- 1.21.x | |
- 1.22.x | |
os: [ ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
cache: true # caching and restoring go modules and build outputs | |
- run: go env | |
- name: Install deps | |
run: go mod download | |
- name: Start containers | |
run: docker-compose up -d --build | |
- name: Test | |
run: make test | |
- name: Stop containers | |
if: always() | |
run: docker-compose down |