-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/compiler-cache
- Loading branch information
Showing
6 changed files
with
109 additions
and
15 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
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 }}) | ||
runs-on: [ubuntu-latest] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
plugins: [ | ||
'default_with_version_config', | ||
'default_without_version_in_config', | ||
'tokens', | ||
'tokens==0.6.1' | ||
] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- 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`. | ||
sed -i 's/version: 0.6.1//g' "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 |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# This file exists only as a test for the action. | ||
plugins: | ||
- name: tokens | ||
version: 0.6.1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
number = true |