-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (77 loc) · 2.55 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
linux:
name: Linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- 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.benchmarks srcenv.tests srcenv.version && \
printf '\033[32m✔\033[0m ShellCheck\n'
- name: Install shells
run: |
sudo apt-get update
sudo apt-get install ash 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
macos:
name: macOS
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install ShellCheck
run: |
curl -Ls https://github.com/koalaman/shellcheck/releases/download/v0.10.0/shellcheck-v0.10.0.darwin.aarch64.tar.xz | \
tar xJ --strip-components=1 shellcheck-v0.10.0/shellcheck
- name: Run ShellCheck
run: |
./shellcheck --color=always srcenv srcenv.benchmarks srcenv.tests srcenv.version && \
printf '\033[32m✔\033[0m ShellCheck\n'
- name: Install shells
run: |
brew update
brew install elvish fish mksh murex nushell
- name: Run srcenv tests
run: ./srcenv.tests
windows:
name: Windows
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install ShellCheck
shell: bash
run: |
curl -Lso shellcheck.zip https://github.com/koalaman/shellcheck/releases/download/v0.10.0/shellcheck-v0.10.0.zip
7z x shellcheck.zip shellcheck.exe
- name: Run ShellCheck
shell: bash
run: |
./shellcheck.exe --color=always srcenv srcenv.benchmarks srcenv.tests srcenv.version && \
printf '\033[32m✔\033[0m ShellCheck\n'
- name: Run srcenv tests
shell: bash
run: ./srcenv.tests