From 93c94e38f99f5d97edfbef83d1938e083919a4b0 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Sun, 17 Apr 2022 17:24:34 +0100 Subject: [PATCH] GitHub Actions --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..03e1e76f --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 ./...