Skip to content

Commit

Permalink
ci: add support for go v1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
arsham committed Sep 8, 2022
1 parent c30bbc6 commit 91dd471
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- master
- feature/*
- bugfix/*
tags:
- "*"
pull_request:
branches:
- master
Expand All @@ -17,24 +19,27 @@ on:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.18", "1.19"]

steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v2
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: ${{ matrix.go }}

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
${{ runner.os }}-go-${{ matrix.go }}
- name: Running Tests
run: make ci_tests
Expand All @@ -51,12 +56,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: ${{ matrix.go }}

- name: WriteGoList
run: go list -json -deps > go.list
Expand All @@ -68,9 +73,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}

- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
args: --timeout 5m0s

0 comments on commit 91dd471

Please sign in to comment.