-
Notifications
You must be signed in to change notification settings - Fork 222
63 lines (61 loc) · 2.12 KB
/
test-windows.yml
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
52
53
54
55
56
57
58
59
60
61
62
63
name: Test (Windows)
defaults:
run:
shell: bash
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
tests-matrix:
name: Tests Matrix (Windows)
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
mocha-args-windows: [
# "src/test/cli.build.test.ts",
# "src/test/cli.exec.buildKit.1.test.ts",
# "src/test/cli.exec.buildKit.2.test.ts",
# "src/test/cli.exec.nonBuildKit.1.test.ts",
# "src/test/cli.exec.nonBuildKit.2.test.ts",
# "src/test/cli.test.ts",
# "src/test/cli.up.test.ts",
"src/test/container-features/containerFeaturesOCI.test.ts",
# "src/test/container-features/containerFeaturesOCIPush.test.ts",
# "src/test/container-features/containerFeaturesOrder.test.ts",
# "src/test/container-features/e2e.test.ts",
# "src/test/container-features/featureHelpers.test.ts",
# "src/test/container-features/featuresCLICommands.test.ts",
"src/test/container-features/generateFeaturesConfig.test.ts",
# "src/test/container-templates/containerTemplatesOCI.test.ts",
# "src/test/container-templates/templatesCLICommands.test.ts",
# "src/test/dockerComposeUtils.test.ts",
# "src/test/dockerfileUtils.test.ts",
# "src/test/dockerUtils.test.ts",
# "src/test/imageMetadata.test.ts",
# "src/test/variableSubstitution.test.ts",
# "src/test/container-features/registryCompatibilityOCI.test.ts",
# # Run all except the above:
# "--exclude .....",
]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@microsoft'
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Type-Check
run: yarn type-check
- name: Package
run: yarn package
- name: Run Tests
run: yarn test-matrix --forbid-only ${{ matrix.mocha-args-windows }}