Add "All tests passed" job to simplify PR requirements #74
Workflow file for this run
This file contains hidden or 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 Brioche Setup | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| smoke-test-setup-brioche: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runs-on: | |
| - ubuntu-22.04 | |
| - ubuntu-24.04 | |
| - ubuntu-latest | |
| runs-on: ${{ matrix.runs-on }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Setup Brioche | |
| uses: ./ # Uses an action in the root directory | |
| - &verify-brioche | |
| name: Verify Brioche installation | |
| run: | | |
| brioche --version | |
| brioche install -r hello_world | |
| hello-world | |
| WATERMARK="$(date -uIs)" | |
| sed -i "s/\${WATERMARK}/${WATERMARK}/g" example-project/project.bri | |
| brioche build -p example-project -o output | |
| test-setup-brioche-with-version-override: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - runs-on: ubuntu-24.04 | |
| version: stable | |
| - runs-on: ubuntu-24.04-arm | |
| version: stable | |
| - runs-on: ubuntu-24.04 | |
| version: nightly | |
| - runs-on: ubuntu-24.04-arm | |
| version: nightly | |
| runs-on: ${{ matrix.runs-on }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Setup Brioche | |
| uses: ./ # Uses an action in the root directory | |
| with: | |
| version: ${{ matrix.version }} | |
| - *verify-brioche | |
| test-setup-brioche-with-install-bin-dir-override: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Setup Brioche | |
| uses: ./ # Uses an action in the root directory | |
| with: | |
| install-bin-dir: ${{ runner.temp }}/brioche-bin | |
| - name: Verify Brioche location | |
| run: | | |
| test -f "${{ runner.temp }}/brioche-bin/brioche" | |
| - *verify-brioche | |
| test-setup-brioche-with-install-root-override: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Setup Brioche | |
| uses: ./ # Uses an action in the root directory | |
| with: | |
| install-root: ${{ runner.temp }}/brioche-install | |
| - name: Verify Brioche location | |
| run: | | |
| test -d "${{ runner.temp }}/brioche-install/brioche" | |
| - *verify-brioche | |
| all-tests: | |
| name: All tests passed | |
| needs: | |
| - smoke-test-setup-brioche | |
| - test-setup-brioche-with-install-bin-dir-override | |
| - test-setup-brioche-with-install-root-override | |
| - test-setup-brioche-with-version-override | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: All tests passed | |
| run: 'true' |