Add tests for dev containers #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Test devcontainers' | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout (GitHub) | |
uses: actions/checkout@v4 | |
- name: Setup macOS Docker | |
if: runner.os == 'macos' | |
run: | | |
brew install docker docker-buildx | |
ls -hla ~ | |
echo '"cliPluginsExtraDirs": ["/opt/homebrew/lib/docker/cli-plugins"]' > "~/.docker/config.json" | |
- name: Build and run dev container task | |
uses: devcontainers/[email protected] | |
with: | |
runCmd: opensafely run run_all |