-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,37 @@ | ||
name: CI | ||
|
||
on: [push] | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Run Shellcheck | ||
run: shellcheck bin/* | ||
plugin-test: | ||
- uses: actions/checkout@v4 | ||
- name: Run Shellcheck | ||
run: shellcheck bin/* | ||
|
||
plugin-test-macos: | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install ASDF | ||
run: git clone https://github.com/asdf-vm/asdf.git $HOME/asdf | ||
- name: Test plugin | ||
env: | ||
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
. $HOME/asdf/asdf.sh | ||
asdf plugin-test swiftlint $GITHUB_WORKSPACE 'swiftlint version' | ||
- uses: actions/checkout@v4 | ||
- name: Install ASDF | ||
run: git clone https://github.com/asdf-vm/asdf.git $HOME/asdf | ||
- name: Test plugin | ||
env: | ||
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
. $HOME/asdf/asdf.sh | ||
asdf plugin-test swiftlint $GITHUB_WORKSPACE 'swiftlint version' | ||
plugin-test-linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install ASDF | ||
run: git clone https://github.com/asdf-vm/asdf.git $HOME/asdf | ||
- name: Test plugin | ||
env: | ||
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
. $HOME/asdf/asdf.sh | ||
asdf plugin-test swiftlint $GITHUB_WORKSPACE 'swiftlint version' |