0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-13 22:11:20 -05:00

Ci: improve times, reduce delay (#3780)

* improve CI times

* improve CI times
This commit is contained in:
Fred K. Schott 2022-06-30 11:21:41 -07:00 committed by GitHub
parent 192c4bcfd6
commit bf44b2ab88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,9 +114,9 @@ jobs:
node_version: [14, 16] node_version: [14, 16]
include: include:
- os: windows-latest - os: windows-latest
node_version: 16 node_version: 14
- os: macos-latest - os: macos-latest
node_version: 16 node_version: 14
fail-fast: false fail-fast: false
needs: needs:
- build - build
@ -151,19 +151,14 @@ jobs:
run: pnpm run test run: pnpm run test
e2e: e2e:
name: 'E2E: ${{ matrix.os }} (node@${{ matrix.node_version }})' name: 'Test (E2E): ${{ matrix.os }} (node@${{ matrix.node_version }})'
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
env: env:
ASTRO_TELEMETRY_DISABLED: true ASTRO_TELEMETRY_DISABLED: true
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest, windows-latest]
node_version: [14, 16] node_version: [14]
include:
- os: windows-latest
node_version: 16
- os: macos-latest
node_version: 16
fail-fast: false fail-fast: false
needs: needs:
- build - build
@ -193,11 +188,12 @@ jobs:
run: pnpm run test:e2e run: pnpm run test:e2e
smoke: smoke:
name: 'Test (Smoke) ${{ matrix.os }}' name: 'Test (Smoke): ${{ matrix.os }} (node@${{ matrix.node_version }})'
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [windows-latest, ubuntu-latest] os: [ubuntu-latest, windows-latest]
node_version: [14]
needs: needs:
- build - build
steps: steps:
@ -212,10 +208,10 @@ jobs:
- name: Setup PNPM - name: Setup PNPM
uses: pnpm/action-setup@v2.2.1 uses: pnpm/action-setup@v2.2.1
- name: Setup Node - name: Setup node@${{ matrix.node_version }}
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 14 node-version: ${{ matrix.node_version }}
cache: 'pnpm' cache: 'pnpm'
- name: Download Build Artifacts - name: Download Build Artifacts