Skip to content

feat: macOS runner support #62

feat: macOS runner support

feat: macOS runner support #62

Workflow file for this run

name: Plugins Test
on:
push:
branches: [main]
tags-ignore: ['**']
paths-ignore: ['**.md']
pull_request:
paths-ignore: ['**.md']
concurrency:
group: ${{ github.ref }}-plugins
cancel-in-progress: true
jobs:
run-this-action:
name: Run action (${{ matrix.plugins }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
plugins: [
'default_with_version_config',
'default_without_version_in_config',
'tokens',
'tokens==0.8.0'
]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Check plugins
id: check-plugins
run: |
if [[ "${{ matrix.plugins }}" != default_* ]]; then
echo "ape-plugins=${{ matrix.plugins }}" >> $GITHUB_OUTPUT
fi
if [[ "${{ matrix.plugins }}" == "default_without_version_in_config" ]]; then
# Remove the version so it defaults to `. -U`.
awk '!/version: 0.8.0/' "ape-config.yaml" > "ape-config.tmp" && mv "ape-config.tmp" "ape-config.yaml"
fi
- name: Run ape action
id: ape-action
uses: ./
with:
ape-plugins-list: ${{ steps.check-plugins.outputs.ape-plugins }}
- run: ape plugins list