-
Notifications
You must be signed in to change notification settings - Fork 185
69 lines (56 loc) · 1.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
name: ci
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: lint
if: matrix.os == 'macOS-latest'
run: |
brew install shfmt shellcheck
shfmt -d .
shellcheck -s sh *.sh
- name: verify checksum
if: matrix.os == 'ubuntu-latest'
shell: bash
run: |
if ! shasum -a 256 -c SHA256SUM; then
echo 'Checksum verification failed'
exit 1
fi
- name: tests shell
shell: bash
run: ./install_test.sh
- name: tests powershell
if: matrix.os == 'windows-latest'
shell: powershell
run: ./install_test.ps1
- name: tests powershell core
if: matrix.os == 'windows-latest'
shell: pwsh
run: ./install_test.ps1
check-js:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: rc
- name: deno lint
run: deno lint
- name: check fmt
run: deno fmt --check
- name: check bundled file up to date
run: |
cd shell-setup
deno task bundle
if ! git --no-pager diff --exit-code ./bundled.esm.js; then
echo 'Bundled script is out of date, update it with `cd shell-setup; deno task bundle`'.
exit 1
fi