-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (52 loc) · 1.66 KB
/
check-linux.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
---
name: 🐧 Check (Linux)
on:
push:
branches: [main]
paths:
- "lib/sh/**"
pull_request:
branches: [main]
paths:
- "lib/sh/**"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/[email protected]
- name: ☑️ ShellCheck
uses: ludeeus/action-shellcheck@cd81f4475ab741e097ec0fe73b692f3e49d66b8c
with:
scandir: "./lib/sh"
build:
runs-on: ubuntu-latest
timeout-minutes: 30
needs: [shellcheck]
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/[email protected]
- name: ⚙️ Prepare dependencies
run: |
sudo apt-get update
sudo apt-get install -y zsh
- name: "⚙️ Check: install.sh -- -i skip"
run: sh -x ./lib/sh/install.sh -- -i skip; command rm -rf ~/.zi
- name: "⚙️ Check: install.sh -- -i annex"
run: sh -x ./lib/sh/install.sh -- -a annex; command rm -rf ~/.zi
- name: "⚙️ Check: install.sh -- -i loader"
run: sh -x ./lib/sh/install.sh -- -a loader; command rm -rf ~/.zi
- name: "⚙️ Check: install.sh -- -i zunit"
run: sh -x ./lib/sh/install.sh -- -a zunit; command rm -rf ~/.zi
- name: "⚙️ Check: install_zpmod.sh"
run: sh -x ./lib/sh/install_zpmod.sh
- name: ⚙️ Load zpmod module
run: |
module_path+=( "$HOME/.zi/zmodules/zpmod/Src" )
zmodload zi/zpmod
zpmod source-study -l
shell: zsh {0}