diff options
author | Valery Piashchynski <[email protected]> | 2021-02-01 11:06:00 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-01 11:06:00 +0300 |
commit | eab3138344acfbd9f1c28891db0b04b1bd43135c (patch) | |
tree | 36b09b0066f0f794138f42a8c525cf796cd82a64 /.github/workflows/build.yaml | |
parent | fe9e7923ccd49fc75c65306810b5982637b06313 (diff) | |
parent | 6535c1cab2df8150c8d32ed440a11eb275009d99 (diff) |
Merge pull request #516 from spiral/update_temporalv2.0.0-beta.20
fix(activities): Update temporal plugin
Diffstat (limited to '.github/workflows/build.yaml')
-rw-r--r-- | .github/workflows/build.yaml | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 00000000..562bdce5 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,58 @@ +name: Linux + +on: + push: + pull_request: + branches: + # Branches from forks have the form 'user:branch-name' so we only run + # this job on pull_request events for branches that look like fork + # branches. Without this we would end up running this job twice for non + # forked PRs, once for the push and then once for opening the PR. + - "**:**" + +jobs: + golang: + name: Build (Go ${{ matrix.go }}, OS ${{matrix.os}}) + runs-on: ${{ matrix.os }} + timeout-minutes: 60 + strategy: + fail-fast: false + matrix: + go: [ "1.14", "1.15" ] + os: [ ubuntu-20.04 ] + steps: + - name: Set up Go ${{ matrix.go }} + uses: actions/setup-go@v2 # action page: <https://github.com/actions/setup-go> + with: + go-version: ${{ matrix.go }} + + - name: Check out code + uses: actions/checkout@v2 + + - name: Init Go modules Cache # Docs: <https://git.io/JfAKn#go---modules> + uses: actions/cache@v2 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: ${{ runner.os }}-go- + + - name: Install Go dependencies + run: cd cmd && go mod download && go mod verify + + - name: Build + run: cd cmd && go build + + + golangci-lint: + name: Golang-CI (lint) + runs-on: ubuntu-20.04 + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Run linter + uses: golangci/golangci-lint-action@v2 # Action page: <https://github.com/golangci/golangci-lint-action> + with: + working-directory: cmd + version: v1.35 # without patch version + only-new-issues: false # show only new issues if it's a pull request |