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:
parent
192c4bcfd6
commit
bf44b2ab88
1 changed files with 10 additions and 14 deletions
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue