Files
warewulf/.github/workflows/test.yml
Michael L. Young 792c3574b7 Add SRPM Artifact To Releases
* Upload SRPMs that are created
* Update actions/checkout to v3

Closes #614

Signed-off-by: Michael L. Young <myoung@ciq.co>
2022-12-22 22:21:50 -05:00

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@v3
- 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