-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (77 loc) · 2.38 KB
/
test.yaml
File metadata and controls
90 lines (77 loc) · 2.38 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: "Test Dev Container Features"
on:
push:
branches: [main]
paths:
- "src/**"
- "test/**"
pull_request:
branches: [main]
paths:
- "src/**"
- "test/**"
workflow_dispatch:
jobs:
test-autogenerated:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- feature: ai-clis
baseImage: mcr.microsoft.com/devcontainers/javascript-node:22
- feature: modern-cli-tools
baseImage: mcr.microsoft.com/devcontainers/base:ubuntu
- feature: node-dev-tools
baseImage: mcr.microsoft.com/devcontainers/javascript-node:22
- feature: rust-dev-tools
baseImage: mcr.microsoft.com/devcontainers/rust:latest
- feature: github-actions-tools
baseImage: mcr.microsoft.com/devcontainers/base:ubuntu
- feature: python-tools
baseImage: mcr.microsoft.com/devcontainers/python:latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install DevContainer CLI
run: npm install -g @devcontainers/cli
- name: Run auto-generated tests
run: devcontainer features test --features ${{ matrix.feature }} --base-image ${{ matrix.baseImage }} .
test-scenarios:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
feature:
- ai-clis
- modern-cli-tools
- node-dev-tools
- rust-dev-tools
- github-actions-tools
- python-tools
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install DevContainer CLI
run: npm install -g @devcontainers/cli
- name: Run scenario tests
run: devcontainer features test --features ${{ matrix.feature }} --skip-autogenerated .
test-global:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install DevContainer CLI
run: npm install -g @devcontainers/cli
- name: Run global scenario tests
run: devcontainer features test --global-scenarios-only .