Files
warewulf/.github/workflows/test.yml
Jonathon Anderson bf3995d6f5 Clean up test targets in Makefile
Most notably, replaces the test-it target with a more simply named test
target.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00

45 lines
716 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