diff options
| author | Kurenai <[email protected]> | 2021-10-19 03:40:10 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-19 03:40:10 +0000 |
| commit | a1085fed022fa598715160e4188f7d61afef926a (patch) | |
| tree | 6dc9931816e4822ed5f06a68d4da7fbafa4af1b5 /.github | |
| parent | 890ff58b34e8b0b2cf2f537981a1da180c3f8ca6 (diff) | |
Create build.yml
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..05c8f4b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,36 @@ +name: Build +on: + push: + branches: + - workflow-demo + 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 |
