Skip to content

Commit

Permalink
(wip) for tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tnasu committed Jul 9, 2021
1 parent d1f5673 commit f1aa70e
Showing 1 changed file with 31 additions and 27 deletions.
58 changes: 31 additions & 27 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,31 +75,7 @@ jobs:
# 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:
test_abci_cli:
runs-on: ubuntu-latest
needs: build
timeout-minutes: 5
Expand All @@ -120,10 +96,38 @@ jobs:
path: ~/go/bin
key: ${{ runner.os }}-${{ github.sha }}-tm-binary
#if: env.GIT_DIFF
- name: re-install when cannot get cached binary
- name: Re-install when cannot get 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 }}-tm-binary
if: env.GIT_DIFF
- name: Re-install when cannot get 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
if: env.GIT_DIFF

0 comments on commit f1aa70e

Please sign in to comment.