Skip to content

Commit

Permalink
chore: Run JS package tests with turbo@2 canary
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulkar committed May 28, 2024
1 parent e468cb1 commit 90b8237
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/actions/install-global-turbo/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: "Install Global Turbo"
description: "Installs turbo globally. Expects Node and npm to already be installed"
inputs:
turbo-version:
description: The version of turbo to install
default: 1.13.4-canary.5

runs:
using: "composite"
Expand All @@ -10,4 +14,4 @@ runs:
run: |
VERSION=$(npm view turbo --json | jq -r '.versions | last')
echo "Latest published version: $VERSION"
npm i -g turbo@1.13.4-canary.5
npm i -g turbo@${{ inputs.turbo-version }}
12 changes: 11 additions & 1 deletion .github/workflows/test-js-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ jobs:
strategy:
fail-fast: false
matrix:
turbo_version:
- 1.13.4-canary.5
- 2.0.0-canary.0
os:
- name: ubuntu
runner:
Expand Down Expand Up @@ -96,11 +99,18 @@ jobs:

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

- name: Run tests
# We manually set TURBO_API to an empty string to override Hetzner env
# We filter out turborepo-repository because it's a native package and needs
# to run when turbo core changes. This job (`js_packages`) does not run on turborpeo core
# changes, and we don't want to enable that beahvior for _all_ our JS packages.
run: |
TURBO_API= turbo run check-types test --filter=docs --filter="!turborepo-repository" --filter={./packages/*}...[${{ github.event.pull_request.base.sha || 'HEAD^1' }}] --color --env-mode=strict
TURBO_API= turbo run check-types test \
--filter=docs \
--filter="!turborepo-repository" \
--filter={./packages/*}...[${{ github.event.pull_request.base.sha || 'HEAD^1' }}] \
--color \
--env-mode=strict

0 comments on commit 90b8237

Please sign in to comment.