5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-21 21:50:29 +00:00

GitHub Actions

This commit is contained in:
Neil Alexander 2022-04-17 17:24:34 +01:00 committed by GitHub
parent 6c4778bb67
commit 93c94e38f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

31
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Yggdrasil
on:
push:
branches: [ master develop ]
pull_request:
branches: [ master develop ]
release:
jobs:
build-test:
name: Go ${{ matrix.goversion }}
strategy:
matrix:
goversion: ["1.16", "1.17", "1.18"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.goversion }}
- name: Build Yggdrasil
run: go build -v ./...
- name: Unit tests
run: go test -v ./...