forked from withastro/astro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update test coverage to include more Node and Windows tests (withastr…
…o#4144) * update node test coverage to include v18, more windows tests * chore(ci): update turbo to account for OS and NODE_VERSION * chore: disable node@18, add TODO Co-authored-by: Nate Moore <[email protected]>
- Loading branch information
1 parent
ee38b02
commit 778a4d2
Showing
3 changed files
with
33 additions
and
27 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ env: | |
FORCE_COLOR: true | ||
ASTRO_TELEMETRY_DISABLED: true | ||
|
||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
|
@@ -79,8 +80,8 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node_version: [14] | ||
OS: [ubuntu-latest] | ||
NODE_VERSION: [14] | ||
fail-fast: true | ||
steps: | ||
- name: Checkout | ||
|
@@ -89,10 +90,10 @@ jobs: | |
- name: Setup PNPM | ||
uses: pnpm/[email protected] | ||
|
||
- name: Setup node@${{ matrix.node_version }} | ||
- name: Setup node@${{ matrix.NODE_VERSION }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
node-version: ${{ matrix.NODE_VERSION }} | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
|
@@ -102,30 +103,31 @@ jobs: | |
run: pnpm run build | ||
|
||
test: | ||
name: 'Test: ${{ matrix.os }} (node@${{ matrix.node_version }})' | ||
name: 'Test: ${{ matrix.os }} (node@${{ matrix.NODE_VERSION }})' | ||
runs-on: ${{ matrix.os }} | ||
needs: build | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node_version: [14, 16] | ||
OS: [ubuntu-latest, windows-latest] | ||
# TODO: Enable node@18! | ||
NODE_VERSION: [14, 16] | ||
include: | ||
- os: windows-latest | ||
node_version: 14 | ||
- os: macos-latest | ||
node_version: 14 | ||
NODE_VERSION: 14 | ||
fail-fast: false | ||
env: | ||
NODE_VERSION: ${{ matrix.NODE_VERSION }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PNPM | ||
uses: pnpm/[email protected] | ||
|
||
- name: Setup node@${{ matrix.node_version }} | ||
- name: Setup node@${{ matrix.NODE_VERSION }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
node-version: ${{ matrix.NODE_VERSION }} | ||
cache: 'pnpm' | ||
|
||
- name: Use Deno | ||
|
@@ -143,26 +145,28 @@ jobs: | |
run: pnpm run test | ||
|
||
e2e: | ||
name: 'Test (E2E): ${{ matrix.os }} (node@${{ matrix.node_version }})' | ||
name: 'Test (E2E): ${{ matrix.os }} (node@${{ matrix.NODE_VERSION }})' | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 20 | ||
needs: build | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
node_version: [14] | ||
OS: [ubuntu-latest, windows-latest] | ||
NODE_VERSION: [14] | ||
fail-fast: false | ||
env: | ||
NODE_VERSION: ${{ matrix.NODE_VERSION }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PNPM | ||
uses: pnpm/[email protected] | ||
|
||
- name: Setup node@${{ matrix.node_version }} | ||
- name: Setup node@${{ matrix.NODE_VERSION }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
node-version: ${{ matrix.NODE_VERSION }} | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
|
@@ -175,24 +179,26 @@ jobs: | |
run: pnpm run test:e2e | ||
|
||
smoke: | ||
name: 'Test (Smoke): ${{ matrix.os }} (node@${{ matrix.node_version }})' | ||
name: 'Test (Smoke): ${{ matrix.os }} (node@${{ matrix.NODE_VERSION }})' | ||
runs-on: ${{ matrix.os }} | ||
needs: build | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node_version: [14] | ||
OS: [ubuntu-latest] | ||
NODE_VERSION: [14] | ||
env: | ||
NODE_VERSION: ${{ matrix.NODE_VERSION }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PNPM | ||
uses: pnpm/[email protected] | ||
|
||
- name: Setup node@${{ matrix.node_version }} | ||
- name: Setup node@${{ matrix.NODE_VERSION }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
node-version: ${{ matrix.NODE_VERSION }} | ||
cache: 'pnpm' | ||
|
||
- name: Checkout docs | ||
|
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
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