summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..a2a001d
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,37 @@
+name: Build
+on:
+ push:
+ branches:
+ - workflow-demo
+ workflow_dispatch:
+ pull_request:
+
+jobs:
+
+ lint:
+ name: Lint
+ runs-on: ubuntu-latest
+ steps:
+ - name: Set up Go
+ uses: actions/setup-go@v1
+ with:
+ go-version: 1.12
+
+ - name: Check out code
+ uses: actions/checkout@v1
+
+ - name: Lint Go Code
+ run: |
+ export PATH=$PATH:$(go env GOPATH)/bin # temporary fix. See https://github.com/actions/setup-go/issues/14
+ go get -u golang.org/x/lint/golint
+ make lint
+
+ build:
+ name: Build
+ runs-on: ubuntu-latest
+ needs: [lint]
+ steps:
+ - name: Set up Go
+ uses: actions/setup-go@v1
+ with:
+ go-version: 1.12