Skip to content

Commit 84440cd

Browse files
authored
test: add CI workflow for testing 'mise' features across multiple base images
1 parent 740cd9e commit 84440cd

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/test-all.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: "CI - Test Features"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
continue-on-error: true
12+
strategy:
13+
matrix:
14+
features:
15+
- "mise"
16+
baseImage:
17+
- "ubuntu:focal"
18+
- "ubuntu:jammy"
19+
- "debian:11"
20+
- "debian:12"
21+
- "mcr.microsoft.com/devcontainers/base:ubuntu"
22+
- "mcr.microsoft.com/devcontainers/base:debian"
23+
- "mcr.microsoft.com/devcontainers/base:noble"
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: jdx/mise-action@v2
27+
28+
- name: "Generating tests for '${{ matrix.features }}' against '${{ matrix.baseImage }}'"
29+
run: mise x -- devcontainer features test --skip-scenarios -f ${{ matrix.features }} -i ${{ matrix.baseImage }} .
30+
31+
test-scenarios:
32+
runs-on: ubuntu-latest
33+
continue-on-error: true
34+
strategy:
35+
matrix:
36+
features:
37+
- "mise"
38+
steps:
39+
- uses: actions/checkout@v4
40+
- uses: jdx/mise-action@v2
41+
42+
- name: "Testing '${{ matrix.features }}' scenarios"
43+
run: mise x -- devcontainer features test -f ${{ matrix.features }} --skip-autogenerated .
44+
45+
test-global:
46+
runs-on: ubuntu-latest
47+
continue-on-error: true
48+
steps:
49+
- uses: actions/checkout@v4
50+
- uses: jdx/mise-action@v2
51+
52+
- name: "Testing global scenarios"
53+
run: mise x -- devcontainer features test --global-scenarios-only .

0 commit comments

Comments
 (0)