devContainer #249
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: devContainer | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
tests: | |
name: Run devcontainer test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: "Create environment files" | |
run: .devcontainer/prepare-env.sh | |
- name: run tests software | |
uses: devcontainers/ci@v0.3 | |
with: | |
configFile: .devcontainer/raspberry/devcontainer.json | |
env: .devcontainer/raspberry/.env | |
runCmd: | | |
docker ps | |
software/build.sh | |
- name: run tests stm32 | |
uses: devcontainers/ci@v0.3 | |
with: | |
configFile: .devcontainer/stm32/devcontainer.json | |
env: .devcontainer/stm32/.env | |
runCmd: make | |
- name: run tests for virtual environment | |
uses: devcontainers/ci@v0.3 | |
with: | |
configFile: .devcontainer/virtual/devcontainer.json | |
env: .devcontainer/virtual/.env |