Skip to content

Commit

Permalink
run integration and examples with 2.0 also
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulkar committed May 28, 2024
1 parent 90b8237 commit be2d572
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-js-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
matrix:
turbo_version:
- 1.13.4-canary.5
- 2.0.0-canary.0
- canary # 2.0 canary
os:
- name: ubuntu
runner:
Expand Down
22 changes: 21 additions & 1 deletion .github/workflows/turborepo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ jobs:
- runner: ubuntu-latest
- runner: macos-12
- runner: windows-latest
turbo_version:
- 1.13.4-canary.5
- canary # 2.0 canary
steps:
# On Windows, set autocrlf to input so that when the repo is cloned down
# the fixtures retain their line endings and don't get updated to CRLF.
Expand All @@ -197,6 +200,8 @@ jobs:

- name: Install Global Turbo
uses: ./.github/actions/install-global-turbo
with:
turbo-version: ${{ matrix.turbo_version }}

- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
Expand All @@ -220,6 +225,12 @@ jobs:
needs: [determine_jobs]
if: needs.determine_jobs.outputs.examples == 'true'
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
turbo_version:
- 1.13.4-canary.5
- canary # 2.0 canary

runs-on: ubuntu-latest
steps:
Expand All @@ -239,13 +250,22 @@ jobs:

- name: Install Global Turbo
uses: ./.github/actions/install-global-turbo
with:
turbo-version: ${{ matrix.turbo_version }}

- name: Check examples
shell: bash
# Concurrency being 1 is a big hammer here.
# It's a quick fix for non-deterministic behaviors we're seeing around package resolution.
# We could likely do some hacking to reparallelize this, but it's not worth it right now.
run: turbo run test --filter="@turborepo-examples-tests/*" --continue --token=${{ secrets.TURBO_TOKEN }} --team=${{ vars.TURBO_TEAM }} --env-mode=strict --concurrency=1
run: |
turbo run test \
--filter="@turborepo-examples-tests/*" \
--continue \
--token=${{ secrets.TURBO_TOKEN }} \
--team=${{ vars.TURBO_TEAM }} \
--env-mode=strict \
--concurrency=1
# Disable corepack again. actions/setup-node's "Post" step runs at the end of
# this job invokes other package managers, and corepack throws an error.
Expand Down

0 comments on commit be2d572

Please sign in to comment.