Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run all tests only on master #238

Merged
merged 1 commit into from
Mar 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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