From 48d857d3c7b45fb6317c1ec483e2c87f1327943c Mon Sep 17 00:00:00 2001 From: baez90 Date: Sat, 5 Dec 2020 12:08:10 +0100 Subject: [PATCH] Add GitHub actions --- .github/workflows/go.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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..5816936 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,38 @@ +name: Go + +on: [ push, pull_request ] + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.15 + uses: actions/setup-go@v2 + with: + go-version: '^1.15' + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + with: + lfs: true + + - name: Install pkger + run: go get -u github.com/markbates/pkger/cmd/pkger + + - name: Install Task + uses: Arduino/actions/setup-taskfile@master + + - name: Build & test + run: task download-reveal assets test + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}