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 3285135
Showing 1 changed file with 28 additions and 15 deletions.
43 changes: 28 additions & 15 deletions .github/workflows/test.yml
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'

0 comments on commit 3285135

Please sign in to comment.