Fix Changes.md formatting #979
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 bootstrap | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| tags-ignore: | |
| - "ubi-*" | |
| pull_request: | |
| release: | |
| types: [published] | |
| permissions: read-all | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| jobs: | |
| test-bootstrap: | |
| name: | | |
| ${{ matrix.platform.os_name }} - ${{ matrix.platform.script }} - ${{ ( matrix.tag == '' && 'no tag' ) || matrix.tag }} | |
| runs-on: ${{ matrix.platform.os }} | |
| container: ${{ matrix.platform.container }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: | |
| - os_name: Linux | |
| os: ubuntu-24.04 | |
| script: bootstrap-ubi.sh | |
| - os_name: Alpine Linux (ash) | |
| os: ubuntu-24.04 | |
| container: | |
| image: alpine:latest | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| volumes: | |
| - "${{ github.workspace }}:/workspace" | |
| options: "--workdir /workspace" | |
| script: bootstrap-ubi.sh | |
| - os_name: macOS | |
| os: macOS-latest | |
| script: bootstrap-ubi.sh | |
| - os_name: Windows | |
| os: windows-latest | |
| script: bootstrap-ubi.ps1 | |
| # Curl seems to be broken in this environment for some reason. See here for an example - | |
| # https://github.com/houseabsolute/ubi/actions/runs/10022996389/job/27703398529 | |
| # | |
| # - os_name: Windows | |
| # os: windows-latest | |
| # script: bootstrap-ubi.sh | |
| tag: | |
| - "" | |
| # This tag has a two-digit patch version, which used to break the version parsing in the | |
| # bootstrap script. See https://github.com/houseabsolute/ubi/issues/152. | |
| - v0.0.15 | |
| - v0.1.1 | |
| exclude: | |
| - platform: | |
| os: windows-latest | |
| tag: v0.0.15 | |
| - platform: | |
| os: windows-latest | |
| tag: v0.1.1 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install curl and sudo on Alpine | |
| shell: sh | |
| run: | | |
| apk update | |
| apk add curl sudo | |
| if: matrix.platform.container != null | |
| - name: Run bootstrap script | |
| shell: sh | |
| run: | | |
| set -e | |
| set -x | |
| if [ $( id -u ) -eq 0 ]; then | |
| adduser -D github | |
| sudo -u github ./bootstrap/test/test-bootstrap.sh "${{ matrix.platform.script }}" "${{ matrix.tag }}" | |
| else | |
| ./bootstrap/test/test-bootstrap.sh "${{ matrix.platform.script }}" "${{ matrix.tag }}" | |
| fi | |
| exit 0 | |
| if: ${{ matrix.platform.script == 'bootstrap-ubi.sh' }} | |
| - name: Run bootstrap script | |
| shell: powershell | |
| run: | | |
| powershell -exec bypass ./bootstrap/bootstrap-ubi.ps1 | |
| if ( -not( Test-Path -Path "ubi.exe" ) ) { | |
| Write-Host "Running ./bootstrap/${{ matrix.platform.script }} did not install ubi!" | |
| exit 1 | |
| } | |
| ./ubi.exe --project houseabsolute/precious --in "." | |
| if ( -not( Test-Path -Path "precious.exe" ) ) { | |
| Write-Host "Running ubi did not install precious!" | |
| exit 2 | |
| } | |
| exit 0 | |
| if: ${{ matrix.platform.script == 'bootstrap-ubi.ps1' }} |