From 2654d9507ae2017b61dd593ee33f43c6f98f0ade Mon Sep 17 00:00:00 2001 From: "Bora M. Alper" Date: Fri, 27 Nov 2020 19:16:42 +0000 Subject: [PATCH] Create go.yml --- .github/workflows/go.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 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..0e7f53d --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,39 @@ +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: ^1.15 + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Install go-bindata + run: | + go get -u -v github.com/kevinburke/go-bindata/... + + - name: Build + run: | + make magneticod + make magneticow + + - name: Test + run: | + make test + + - name: Lint + run: | + make check-formatting