feat: new workflow to build the iso image of the distro #20
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 dotfiles | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
image: [local, remote] | |
env: | |
COMPOSE_FILE: "test/docker-compose.yaml" | |
RAW_CONTENT_URL: "https://raw.githubusercontent.com/${{ github.repository }}/${{ github.head_ref || github.ref_name }}" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build docker image of test environment | |
run: docker compose build ${{ matrix.image }} | |
- name: Run tests inside the docker container | |
run: docker compose up --abort-on-container-failure ${{ matrix.image }} |