Skip to content

Commit 0a7a192

Browse files
committed
Test features with GitHub Actions
This uses a matrix strategy, because then we can test each of the features manually, all with our base image.
1 parent 24bca86 commit 0a7a192

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

‎.github/workflows/build-and-test.yml‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,29 @@ on:
55
push:
66

77
jobs:
8+
features:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
feature:
14+
- asdf
15+
- asdf-plugin-nodejs
16+
steps:
17+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
18+
- run: bin/setup
19+
- name: Build a Dev Container for testing
20+
run: >-
21+
devcontainer build
22+
--image-name ghcr.io/thoughtbot/devcontainers/images/debian
23+
--workspace-folder images/debian
24+
- name: Run feature tests
25+
run: >-
26+
devcontainer features test
27+
-p features
28+
-f ${{ matrix.feature }}
29+
--base-image ghcr.io/thoughtbot/devcontainers/images/debian
30+
831
images:
932
runs-on: ubuntu-latest
1033
steps:

0 commit comments

Comments
 (0)