Skip to content

Commit

Permalink
ci: test
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbaliasnikov committed Mar 5, 2024
1 parent c51114a commit e0370fb
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/integration-tests-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,16 @@ jobs:
file: ${{ matrix.dockerfile }}
tags: ${{ matrix.image }}
cache-from: type=gha,scope=${{ matrix.name }}
cache-to: type=gha,mode=max,scope=${{ matrix.name }}
cache-to: type=gha,mode=max,scope=matrix.name
outputs: type=docker,dest=/tmp/${{ matrix.name }}.tar
# cache-to: ${{ github.event_name == 'push' && 'type=gha,mode=max,scope=matrix.name' || '' }}

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name }}
path: /tmp/${{ matrix.name }}.tar

# SPLIT TESTS BY CHUNKS LIKE THAT:
# https://gist.github.com/imhoffd/b4ca0a94c2496d81303ebb00063a863d
# removes necessity to always update CI file when new .ts added
# you control number of parallel chunks

run-tests:
timeout-minutes: 30
runs-on: ubuntu-latest
Expand All @@ -58,14 +54,14 @@ jobs:
node-version: ['lts/*'] # 18.17.1 or lts/*
test-pattern:
- accounts.test.ts
# - addresses.test.ts
# - batches.test.ts
# - blocks.test.ts
# - contracts.test.ts
# - logs.test.ts
# - stats.test.ts
# - tokens.test.ts
# - transactions.test.ts
- addresses.test.ts
- batches.test.ts
- blocks.test.ts
- contracts.test.ts
- logs.test.ts
- stats.test.ts
- tokens.test.ts
- transactions.test.ts
name: 'API test set: ${{ matrix.test-pattern}} / Node: ${{ matrix.node-version}}'
steps:
- name: Checkout repo
Expand Down Expand Up @@ -112,4 +108,4 @@ jobs:
- name: Run ${{ matrix.test-pattern }}
working-directory: packages/integration-tests
run: |
npx jest --verbose --maxWorkers=9
npx jest --verbose --testPathPattern=${{ matrix.test-pattern }}

0 comments on commit e0370fb

Please sign in to comment.