Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed May 14, 2023
1 parent 0847ed9 commit f1a8d47
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build_initial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,23 @@ env:
PNPM_VERSION: 7.24.3
NODE_MAINTENANCE_VERSION: 16
NODE_LTS_VERSION: 18
TEST_CONCURRENCY: 8
TEST_CONCURRENCY: 6
# TODO: remove after testing
NEXT_TEST_CONTINUE_ON_ERROR: 'true'

jobs:
build-initial:
timeout-minutes: 10
name: build-initial
uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow
secrets: inherit

testDev:
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
group: [1, 2, 3, 4, 5]
group: [1, 2, 3]
needs: ['build-initial']

uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow
Expand All @@ -38,18 +40,20 @@ jobs:
secrets: inherit

testProd:
timeout-minutes: 10
needs: ['build-initial', 'testDev']
strategy:
fail-fast: false
matrix:
group: [1, 2, 3, 4, 5]
group: [1, 2, 3]

uses: vercel/next.js/.github/workflows/build_reusable.yml@ijjk/update-ci-workflow
with:
afterBuild: NEXT_TEST_MODE=dev node run-tests.js --timings -g ${{ matrix.group }}/5 -c ${TEST_CONCURRENCY} --test-pattern '(production|e2e)/.*\.test\.(js|jsx|ts|tsx)$'
secrets: inherit

testIntegration:
timeout-minutes: 10
needs: ['build-initial', 'testProd']
strategy:
fail-fast: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ env:

jobs:
build:
runs-on: self-hosted-arm64-linux
runs-on: self-hosted,linux,arm64

steps:
- run: fnm install 18
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:

- run: pnpm build

- run: turbo run build-native -- --release --target aarch64-unknown-linux-gnu
- run: turbo run build-native-release -- --target aarch64-unknown-linux-gnu

- run: pnpm playwright install-deps

Expand Down

0 comments on commit f1a8d47

Please sign in to comment.