Skip to content

Commit

Permalink
Add action to test plugin on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
klundberg committed Sep 21, 2024
1 parent 206f6d7 commit a646643
Showing 1 changed file with 27 additions and 14 deletions.
41 changes: 27 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,32 @@ 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'

0 comments on commit a646643

Please sign in to comment.