We are pinning version 1.17 for the linting workflow. Go 1.16 has been EOL for almost two years and even EL7 releases have 1.17 available now. Removed 1.16 from our test matrix. This commit does the following: * Update the build testing workflow to run on development branch * Remove go 1.16 and add 1.19 to test build workflow Signed-off-by: Michael L. Young <myoung@ciq.co>
45 lines
719 B
YAML
45 lines
719 B
YAML
---
|
|
name: test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- development
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- development
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
|
|
jobs:
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
go: [ '1.17', '1.18', '1.19' ]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install gpgme
|
|
run: sudo apt-get install libgpgme-dev
|
|
|
|
- name: Setup go ${{ matrix.go }}
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: ${{ matrix.go }}
|
|
cache: true
|
|
|
|
- name: Build with go ${{ matrix.go }}
|
|
run: make all
|
|
|
|
- name: vet
|
|
run: make vet
|
|
|
|
- name: test
|
|
run: make test-it
|