-
Notifications
You must be signed in to change notification settings - Fork 3
65 lines (62 loc) · 2.25 KB
/
Copy pathtest-features.yaml
File metadata and controls
65 lines (62 loc) · 2.25 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
name: Test - Features
on:
pull_request:
paths:
- ".github/workflows/test-features.yaml"
- "package.json"
- "yarn.lock"
- "src/**"
- "!src/**/README.md"
- "!src/**/NOTES.md"
- "test/**"
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
test-autogenerated:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
features:
- fish-persistent-data
- poetry-persistent-cache
- yarn-persistent-cache
baseImage:
- mcr.microsoft.com/devcontainers/base:alpine
- mcr.microsoft.com/devcontainers/base:debian
- mcr.microsoft.com/devcontainers/base:ubuntu
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup project
uses: nikobockerman/github-actions/.github/actions/yarn-project-setup@8e2192ea1f13275dc40372b4581ebe09175d04a1
- name: Running tests for '${{ matrix.features }}' against '${{ matrix.baseImage }}'
run: yarn exec devcontainer features test --skip-scenarios -f ${{ matrix.features }} -i ${{ matrix.baseImage }} .
test-scenarios:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
features:
- fish-persistent-data
- poetry-persistent-cache
- yarn-persistent-cache
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup project
uses: nikobockerman/github-actions/.github/actions/yarn-project-setup@8e2192ea1f13275dc40372b4581ebe09175d04a1
- name: Running tests for '${{ matrix.features }}' scenarios
run: yarn exec devcontainer features test -f ${{ matrix.features }} --skip-autogenerated --skip-duplicated .
test-global:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup project
uses: nikobockerman/github-actions/.github/actions/yarn-project-setup@8e2192ea1f13275dc40372b4581ebe09175d04a1
- name: Testing global scenarios
run: yarn exec devcontainer features test --global-scenarios-only .