From 11fd2079a50ea858bc8d27ae94cbad3005928246 Mon Sep 17 00:00:00 2001 From: Thomas Leister Date: Sat, 17 Feb 2024 23:07:13 +0100 Subject: [PATCH] Enable GitHub actions Enable GitHub actions by adding the corresponding yml file --- .github/workflows/go.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..dddd681 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,31 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "develop" ] + pull_request: + branches: [ "develop" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Copy example config + run: cp config.example.toml config.toml + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...