Use wax for globbing #10399
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: JS Package Tests | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
types: [opened, edited, synchronize] | |
paths-ignore: | |
- "**.md" | |
- "**.mdx" | |
- "docs/**" | |
- "examples/**" | |
jobs: | |
test: | |
timeout-minutes: 30 | |
runs-on: ${{ matrix.os.runner }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- name: ubuntu | |
runner: ubuntu-latest | |
- name: macos | |
runner: macos-latest | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_REMOTE_ONLY: true | |
steps: | |
# on main -> current + prev commit | |
# pr -> pr commits + base commit | |
- name: Determine fetch depth | |
id: fetch-depth | |
run: | | |
echo "depth=$(( ${{ github.event.pull_request.commits || 1 }} + 1 ))" >> $GITHUB_OUTPUT | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.ref }} | |
fetch-depth: ${{ steps.fetch-depth.outputs.depth }} | |
- name: Build turborepo CLI from source | |
uses: ./.github/actions/setup-turborepo-environment | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
target: ${{ matrix.os.name }} | |
- name: Run tests | |
run: | | |
turbo run check-types test --filter=...[${{ github.event.pull_request.base.sha || 'HEAD^1' }}] --filter=!cli --filter=!turborepo-tests* --color | |
cleanup: | |
name: Cleanup | |
needs: [test] | |
if: always() | |
uses: ./.github/workflows/pr-clean-caches.yml | |
secrets: inherit |