Prefer to depend typos with asdf (#84) #118
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: rtx | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
schedule: | |
# Every 10:42 JST | |
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule | |
- cron: '42 1 * * *' | |
workflow_dispatch: | |
jobs: | |
plugin-test: | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
target: | |
- command: | | |
rtx install cargo-make@latest | |
rtx x cargo-make@latest -- makers --version | |
rtx x cargo-make@latest -- cargo-make make --version | |
# Supported oldest | |
- command: | | |
rtx install [email protected] | |
# makers does not exist | |
rtx x [email protected] -- cargo-make make --version | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: jdxcode/[email protected] | |
with: | |
tool_versions: | | |
# - This comment should have different value for each run to avoid the cache. See #75 and #77 | |
# - avoid-cache-key: ${{ github.ref }}-${{ github.run_id }}-${{ github.run_attempt }} | |
# - Don't set cargo-make versions here. Keep no tools for clean room test | |
- name: Install plugin | |
run: | | |
rtx plugins install cargo-make https://github.com/kachick/asdf-cargo-make.git#${{ github.ref }} | |
- name: Test | |
run: | | |
${{ matrix.target.command }} |