Skip to content

Add tests for dev containers #12

Add tests for dev containers

Add tests for dev containers #12

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