-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1021 Bytes
/
ci.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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install ShellCheck
run: |
curl -Ls https://github.com/koalaman/shellcheck/releases/download/v0.10.0/shellcheck-v0.10.0.linux.x86_64.tar.xz | \
tar xJ --strip-components=1 shellcheck-v0.10.0/shellcheck
- name: Run ShellCheck
run: |
./shellcheck --color=always srcenv srcenv.tests srcenv.version && \
printf '\033[32m✔\033[0m ShellCheck\n'
- name: Install shells
run: |
sudo apt-get update
sudo apt-get install csh elvish fish ksh mksh tcsh zsh
echo /home/linuxbrew/.linuxbrew/bin >> "$GITHUB_PATH"
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew update
brew install murex nushell
- name: Run srcenv tests
run: ./srcenv.tests