Skip to content

Commit

Permalink
(wip) Fix tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tnasu committed Jul 9, 2021
1 parent 0d7c18e commit 47f98c0
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 74 deletions.
158 changes: 85 additions & 73 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,76 +50,88 @@ jobs:
key: ${{ runner.os }}-${{ github.sha }}-tm-binary
if: env.GIT_DIFF

# test_abci_apps:
# runs-on: ubuntu-latest
# needs: build
# timeout-minutes: 5
# steps:
# - uses: actions/setup-go@v2
# with:
# go-version: "^1.15.4"
# - uses: actions/checkout@v2
# - uses: technote-space/get-diff-action@v4
# with:
# PATTERNS: |
# **/**.go
# go.mod
# go.sum
# - uses: actions/cache@v1
# with:
# path: ~/go/bin
# key: ${{ runner.os }}-${{ github.sha }}-tm-binary
# if: env.GIT_DIFF
# - name: test_abci_apps
# run: abci/tests/test_app/test.sh
# shell: bash
# if: env.GIT_DIFF
#
# test_abci_cli:
# runs-on: ubuntu-latest
# needs: build
# timeout-minutes: 5
# steps:
# - uses: actions/setup-go@v2
# with:
# go-version: "^1.15.4"
# - uses: actions/checkout@v2
# - uses: technote-space/get-diff-action@v4
# with:
# PATTERNS: |
# **/**.go
# go.mod
# go.sum
# - uses: actions/cache@v1
# with:
# path: ~/go/bin
# key: ${{ runner.os }}-${{ github.sha }}-tm-binary
# if: env.GIT_DIFF
# - run: abci/tests/test_cli/test.sh
# shell: bash
# if: env.GIT_DIFF
#
# test_apps:
# runs-on: ubuntu-latest
# needs: build
# timeout-minutes: 5
# steps:
# - uses: actions/setup-go@v2
# with:
# go-version: "^1.15.4"
# - uses: actions/checkout@v2
# - uses: technote-space/get-diff-action@v4
# with:
# PATTERNS: |
# **/**.go
# go.mod
# go.sum
# - uses: actions/cache@v1
# with:
# path: ~/go/bin
# key: ${{ runner.os }}-${{ github.sha }}-tm-binary
# if: env.GIT_DIFF
# - name: test_apps
# run: test/app/test.sh
# shell: bash
# if: env.GIT_DIFF
test_abci_apps:
runs-on: ubuntu-latest
needs: build
timeout-minutes: 5
steps:
- uses: actions/setup-go@v2
with:
go-version: "^1.15.4"
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v4
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: actions/cache@v1
id: gobin-cache
with:
path: ~/go/bin
key: ${{ runner.os }}-${{ github.sha }}-oc-binary
if: env.GIT_DIFF
- name: Re-install when cannot get the cached binary
run: make install install_abci
if: steps.gobin-cache.outputs.cache-hit != 'true'
- name: test_abci_apps
run: abci/tests/test_app/test.sh
shell: bash
if: env.GIT_DIFF

test_abci_cli:
runs-on: ubuntu-latest
needs: build
timeout-minutes: 5
steps:
- uses: actions/setup-go@v2
with:
go-version: "^1.15.4"
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v4
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: actions/cache@v1
id: gobin-cache
with:
path: ~/go/bin
key: ${{ runner.os }}-${{ github.sha }}-oc-binary
if: env.GIT_DIFF
- name: Re-install when cannot get the cached binary
run: make install install_abci
if: steps.gobin-cache.outputs.cache-hit != 'true'
- run: abci/tests/test_cli/test.sh
shell: bash
if: env.GIT_DIFF

test_apps:
runs-on: ubuntu-latest
needs: build
timeout-minutes: 5
steps:
- uses: actions/setup-go@v2
with:
go-version: "^1.15.4"
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v4
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: actions/cache@v1
id: gobin-cache
with:
path: ~/go/bin
key: ${{ runner.os }}-${{ github.sha }}-oc-binary
if: env.GIT_DIFF
- name: Re-install when cannot get the cached binary
run: make install install_abci
if: steps.gobin-cache.outputs.cache-hit != 'true'
- name: test_apps
run: test/app/test.sh
shell: bash
if: env.GIT_DIFF
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*.bak
.DS_Store
build/*
./abci-cli
rpc/test/.ostracon
.ostracon
remote_dump
Expand All @@ -22,7 +23,6 @@ docs/_build
docs/dist
docs/.vuepress/dist
*.log
abci-cli
docs/node_modules/
index.html.md

Expand Down

0 comments on commit 47f98c0

Please sign in to comment.