Skip to content

Commit

Permalink
run all tests only on master (AcalaNetwork#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci authored and ns212 committed Apr 3, 2023
1 parent c344785 commit 2fc0584
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
jobs:
tests:
runs-on: ubuntu-latest
env:
RUN_ALL_TESTS: ${{ github.ref_name == 'master' }}
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -40,4 +42,5 @@ jobs:
- run: yarn build
- run: yarn test
- name: Test substrate-api-sidecard with chopsticks node
if: ${{ github.ref_name == 'master' }}
run: yarn workspace @acala-network/chopsticks-e2e run sidecar
4 changes: 1 addition & 3 deletions packages/e2e/src/build-block.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ describe.each([
await teardownAll()
})

// this is slow and flacky
// TODO: enable this only for nightly tests
it.skip('build blocks', async () => {
it.skipIf(!process.env.RUN_ALL_TESTS)('build blocks', async () => {
const { chain, ws, teardown } = await setup()
const blockNumber = chain.head.number
await ws.send('dev_newBlock', [{ count: 2 }])
Expand Down

0 comments on commit 2fc0584

Please sign in to comment.