Skip to content

Commit aa7da34

Browse files
committed
ci: run integration tests always on main, on all os
1 parent ce0b972 commit aa7da34

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/integration-test-cli.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,29 @@ jobs:
88
cli-integration-test:
99
name: CLI Integration Tests
1010
# Note: `prepare-release.yaml` sets this commit message
11-
if: ${{ contains(github.event.pull_request.title, 'release CLI') || github.event_name == 'workflow_dispatch' }}
12-
runs-on: ubuntu-latest
11+
if: ${{ contains(github.event.pull_request.title, 'release CLI') || github.event_name == 'workflow_dispatch' || github.ref_name == 'main' }}
12+
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [ubuntu-latest]
18+
node-version: [18, 20, 22]
19+
include:
20+
- os: macos-latest
21+
node_version: 20
22+
- os: windows-latest
23+
node_version: 20.13.1
24+
1325
steps:
1426
- name: Checkout
1527
uses: actions/checkout@v4
1628
with:
1729
fetch-depth: 0
1830

1931
- uses: ./.github/actions/setup-and-build
32+
with:
33+
node-version: ${{ matrix.node-version }}
2034

2135
- name: Update template's versions
2236
working-directory: ./packages/cli

integration/theme-resolving/inline-content.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,5 @@ test('getInlineContentForPackage finds files from @tutorialkit/astro', async ()
2626
root: `${tmp}/theme-test`,
2727
});
2828

29-
console.log(content);
3029
expect(content.length).toBeGreaterThan(0);
3130
});

0 commit comments

Comments
 (0)