Skip to content

Commit

Permalink
ci: update (fix) (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle authored Dec 22, 2020
1 parent c92b072 commit 0dc99e7
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 53 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v1
- uses: technote-space/get-diff-action@v4
with:
SUFFIX_FILTER: |
PATTERN: |
.go
.mod
.sum
- uses: golangci/golangci-lint-action@master
- uses: golangci/golangci-lint-action@v2
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.27
version: v1.28.3
args: --timeout 10m
github-token: ${{ secrets.github_token }}
if: "env.GIT_DIFF != ''"
64 changes: 26 additions & 38 deletions .github/workflows/sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup env for GO
run: |
echo "::add-path::$(go env GOPATH)/bin"
echo "::set-env name=GO111MODULE::"on""
shell: bash
- name: install runsim
run: |
go get github.com/cosmos/tools/cmd/[email protected]
- uses: actions/[email protected]
with:
go-version: 1.15
- name: Install runsim
run: export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/[email protected]
- uses: actions/cache@v1
with:
path: ~/go/bin
Expand All @@ -33,18 +30,16 @@ jobs:
runs-on: ubuntu-latest
needs: Build
steps:
- name: Setup env for GO
run: echo "::add-path::$(go env GOPATH)/bin"
shell: bash
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v1
- uses: actions/[email protected]
with:
SUFFIX_FILTER: |
go-version: 1.15
- uses: technote-space/get-diff-action@v4
with:
PATTERN: |
.go
.mod
.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
- uses: actions/cache@v1
with:
path: ~/go/bin
Expand All @@ -59,18 +54,16 @@ jobs:
runs-on: ubuntu-latest
needs: Build
steps:
- uses: technote-space/get-diff-action@v1
- uses: technote-space/get-diff-action@v4
with:
SUFFIX_FILTER: |
PATTERN: |
.go
.mod
.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
- name: Setup env for GO
run: echo "::add-path::$(go env GOPATH)/bin"
shell: bash
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
go-version: 1.15
- uses: actions/cache@v1
with:
path: ~/go/bin
Expand All @@ -85,19 +78,16 @@ jobs:
runs-on: ubuntu-latest
needs: Build
steps:
- name: Setup env for GO
run: |
echo "::add-path::$(go env GOPATH)/bin"
shell: bash
- uses: actions/[email protected]
with:
go-version: 1.15
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v1
- uses: technote-space/get-diff-action@v4
with:
SUFFIX_FILTER: |
PATTERN: |
.go
.mod
.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
- uses: actions/cache@v1
with:
path: ~/go/bin
Expand All @@ -112,19 +102,17 @@ jobs:
runs-on: ubuntu-latest
needs: Build
steps:
- name: Setup env for GO
run: echo "::add-path::$(go env GOPATH)/bin"
shell: bash
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v1
- uses: actions/[email protected]
with:
SUFFIX_FILTER: |
go-version: 1.15
- uses: technote-space/get-diff-action@v4
with:
PATTERNS: |
.go
.mod
.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
- uses: actions/cache@v1
- uses: actions/[email protected]
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand Down
21 changes: 10 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ jobs:
test-coverage-upload:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
go-version: 1.15
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v1
- uses: technote-space/get-diff-action@v4
with:
SUFFIX_FILTER: |
PATTERN: |
.go
.mod
.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
- name: build
run: |
make build
Expand Down Expand Up @@ -52,18 +53,16 @@ jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- name: Setup env for GO
run: echo "::add-path::$(go env GOPATH)/bin"
shell: bash
- uses: actions/[email protected]
with:
go-version: 1.15
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v1
- uses: technote-space/get-diff-action@v4
with:
SUFFIX_FILTER: |
PATTERN: |
.go
.mod
.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
- name: Test CLI integration
run: |
make test-build
Expand Down

0 comments on commit 0dc99e7

Please sign in to comment.