Example workflow #173
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: Example workflow | |
on: | |
push: | |
workflow_dispatch: | |
pull_request: | |
schedule: | |
- cron: '0 0 * * *' # every day at midnight | |
permissions: read-all | |
jobs: | |
latest-version: | |
name: Latest version | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['macos-latest', 'windows-latest', 'ubuntu-20.04'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./ | |
id: install_kit | |
with: | |
version: 'latest' | |
- name: Echo output of installer | |
if: always() | |
run: echo "${{ steps.install_kit.outputs.kit-path }}" | |
- name: Run kit tools | |
shell: bash | |
run: | | |
set -x | |
kit version | |
known-version: | |
name: Known version | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['macos-latest', 'windows-latest', 'ubuntu-20.04'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./ | |
id: install_kit | |
with: | |
version: 'v0.1.0' | |
- name: Echo output of installer | |
if: always() | |
run: echo "${{ steps.install_kit.outputs.kit-path }}" | |
- name: Run installed tools | |
shell: bash | |
run: | | |
set -x | |
kit version |