-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (50 loc) · 1.29 KB
/
aio.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: AllInOne
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-checks
cancel-in-progress: true
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