Skip to content

Add tests for dev containers #17

Add tests for dev containers

Add tests for dev containers #17

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
colima start
- name: Setup macOS Docker Buildx
if: runner.os == 'macos'
uses: docker/setup-buildx-action@v3
- name: Build and run dev container task
uses: devcontainers/[email protected]
with:
runCmd: opensafely run run_all