-
Notifications
You must be signed in to change notification settings - Fork 64
51 lines (43 loc) · 1.19 KB
/
integration-test-cli.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CLI Integration Tests
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
skip:
name: CLI Integration Tests
runs-on: ubuntu-latest
steps:
- name: skip
run: echo skip
cli-integration-test:
name: CLI Integration Test Matrix
# Note: `prepare-release.yaml` sets this commit message
if: ${{ contains(github.event.pull_request.title, 'release CLI') || github.event_name == 'workflow_dispatch' || github.event_name == 'push' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [18, 20, 22]
include:
- os: macos-latest
node_version: 20
- os: windows-latest
node_version: 20.13.1
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup-and-build
with:
node-version: ${{ matrix.node-version }}
- name: Update template's versions
working-directory: ./packages/cli
run: pnpm build-release
- name: Integration Tests
working-directory: ./integration
run: pnpm test