AllInOne #28
Workflow file for this run
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
name: AllInOne | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
schedule: | |
- cron: 0 0 * * 5 | |
jobs: | |
plugin_test: | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: asdf_plugin_test | |
uses: asdf-vm/actions/plugin-test@v1 | |
with: | |
command: gitui --version | |
lint_and_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run the sh-checker | |
uses: luizm/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
#SHELLCHECK_OPTS: -e SC1004 # Optional: exclude some shellcheck warnings. | |
SHFMT_OPTS: -i 2 # Optional: pass arguments to shfmt. | |
with: | |
sh_checker_comment: true | |
- name: Install asdf | |
run: | | |
git clone https://github.com/asdf-vm/asdf.git $HOME/asdf | |
- name: Install bats | |
run: | | |
sudo apt-get install bats | |
bats --version | |
- name: Test plugin with bats | |
run: | | |
. $HOME/asdf/asdf.sh | |
asdf plugin-add gitui $GITHUB_WORKSPACE | |
bats test |