Files
warewulf/.github/workflows/test.yml
2022-06-02 15:27:50 +09:00

41 lines
667 B
YAML

---
name: test
on:
push:
branches: [main]
paths-ignore:
- 'docs/**'
pull_request:
branches: [main]
paths-ignore:
- 'docs/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.16', '1.17', '1.18' ]
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