Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
Comment out CI tests that need ephemeral-cluster (#30)
Browse files Browse the repository at this point in the history
* comment out tests that don't work

* add permissions for labeler
  • Loading branch information
jbowen93 authored Mar 23, 2022
1 parent 989ea44 commit 1c1b98e
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 73 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
Expand Down
149 changes: 76 additions & 73 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,81 +75,84 @@ jobs:
make test-import
if: env.GIT_DIFF

test-solidity:
runs-on: ubuntu-latest
timeout-minutes: 240
strategy:
fail-fast: false
matrix:
batch: ['1-3', '2-3', '3-3']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: 1.17
- uses: technote-space/get-diff-action@v6.0.1
id: git_diff
with:
PATTERNS: |
**/**.sol
**/**.go
tests/solidity/**/*.js
tests/solidity/**/*.sh
go.mod
go.sum
- name: test-solidity
run: |
./scripts/run-solidity-tests.sh --batch=${{ matrix.batch }}
if: env.GIT_DIFF
# TODO(jbowen93): https://github.com/celestiaorg/ethermint/issues/25
# test-solidity:
# runs-on: ubuntu-latest
# timeout-minutes: 240
# strategy:
# fail-fast: false
# matrix:
# batch: ['1-3', '2-3', '3-3']
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-go@v2
# with:
# go-version: 1.17
# - uses: technote-space/get-diff-action@v6.0.1
# id: git_diff
# with:
# PATTERNS: |
# **/**.sol
# **/**.go
# tests/solidity/**/*.js
# tests/solidity/**/*.sh
# go.mod
# go.sum
# - name: test-solidity
# run: |
# ./scripts/run-solidity-tests.sh --batch=${{ matrix.batch }}
# if: env.GIT_DIFF

liveness-test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v2.1.4
with:
go-version: 1.17
- uses: technote-space/get-diff-action@v6.0.1
id: git_diff
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- name: Install Starport
run: |
curl https://get.starport.network/starport! | bash
if: env.GIT_DIFF
- name: Start Local Network via Starport
run: |
starport chain serve --reset-once -v -c ./starport.yml > starport.out 2>&1 &
if: env.GIT_DIFF
- name: Test Local Network Liveness
run: |
sleep 2m
./contrib/scripts/test_localnet_liveness.sh 100 5 50 localhost
if: env.GIT_DIFF
# TODO(jbowen93): https://github.com/celestiaorg/ethermint/issues/26
# liveness-test:
# runs-on: ubuntu-latest
# timeout-minutes: 10
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-go@v2.1.4
# with:
# go-version: 1.17
# - uses: technote-space/get-diff-action@v6.0.1
# id: git_diff
# with:
# PATTERNS: |
# **/**.go
# go.mod
# go.sum
# - name: Install Starport
# run: |
# curl https://get.starport.network/starport! | bash
# if: env.GIT_DIFF
# - name: Start Local Network via Starport
# run: |
# starport chain serve --reset-once -v -c ./starport.yml > starport.out 2>&1 &
# if: env.GIT_DIFF
# - name: Test Local Network Liveness
# run: |
# sleep 2m
# ./contrib/scripts/test_localnet_liveness.sh 100 5 50 localhost
# if: env.GIT_DIFF

test-rpc:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/setup-go@v2.1.4
with:
go-version: 1.17
- uses: actions/checkout@v3
- uses: technote-space/get-diff-action@v6.0.1
with:
PATTERNS: |
**/**.sol
**/**.go
go.mod
go.sum
- name: Test rpc endpoint
run: |
make test-rpc
if: env.GIT_DIFF
# TODO(jbowen93): https://github.com/celestiaorg/ethermint/issues/27
# test-rpc:
# runs-on: ubuntu-latest
# timeout-minutes: 15
# steps:
# - uses: actions/setup-go@v2.1.4
# with:
# go-version: 1.17
# - uses: actions/checkout@v3
# - uses: technote-space/get-diff-action@v6.0.1
# with:
# PATTERNS: |
# **/**.sol
# **/**.go
# go.mod
# go.sum
# - name: Test rpc endpoint
# run: |
# make test-rpc
# if: env.GIT_DIFF

test-e2e:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1c1b98e

Please sign in to comment.