Test #9
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 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| schedule: | |
| # every other day at 06:00 UTC (odd days of the month) | |
| - cron: '0 6 */2 * *' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| hello-world: | |
| name: hello-world (${{ matrix.runner }}, ${{ matrix.channel }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runner: [ubuntu-latest, ubuntu-24.04-arm] | |
| channel: [stable, unstable, nightly] | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Run hello-world task | |
| id: run-task | |
| uses: ./ | |
| with: | |
| channel: ${{ matrix.channel }} | |
| task: hello-world | |
| - name: Verify version output | |
| env: | |
| VERSION: ${{ steps.run-task.outputs.version }} | |
| run: | | |
| echo "Resolved version: $VERSION" | |
| if [ -z "$VERSION" ]; then | |
| echo "::error::action did not set the 'version' output" | |
| exit 1 | |
| fi |