From a09060a28c2e8a8f021f22cf0c9150a91bc1d2c7 Mon Sep 17 00:00:00 2001 From: Andreas Linz Date: Mon, 6 Jul 2020 20:39:35 +0200 Subject: [PATCH] Set up Github Actions for running tests and linter thank you @klingtnet ! --- .github/workflows/go.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..022ac0d --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +name: go +on: [push, pull_request] +jobs: + test: + strategy: + matrix: + go-version: [1.13.x, 1.14.x] + platform: [ubuntu-latest] + runs-on: ${{ matrix.platform }} + steps: + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code into the Go module directory + uses: actions/checkout@v1 + - name: Install dependencies + run: | + sudo apt update + sudo apt install build-essential git sqlite libtag1-dev ffmpeg libasound-dev + - name: Lint + uses: golangci/golangci-lint-action@v1 + with: + version: v1.28 + - name: Test + run: go test ./... + env: + GOPATH: /tmp/gopath