-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (47 loc) · 1.3 KB
/
actions.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: Workflows
on: [push, pull_request]
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Shellcheck Version Check
run: shellcheck -V
- name: Run ShellCheck
run: shellcheck mkRAMDisk.sh
mount-and-test:
runs-on: macos-14
steps:
- name: checkout
uses: actions/checkout@v4
- name: Goss downloaded cache
uses: actions/cache/restore@v4
with:
path: /tmp/goss
key: mkramdisk-goss
- name: Download Goss
run: |
curl -L https://github.com/goss-org/goss/releases/download/v0.4.6/goss-darwin-arm64 \
-o /tmp/goss && \
chmod +x /tmp/goss
- name: Store goss cache
uses: actions/cache/save@v4
with:
path: /tmp/goss
key: mkramdisk-goss
- name: Run mkRAMDisk.sh
run: |
./mkRAMDisk.sh
- name: Run goss
run: |
/tmp/goss validate
env:
GOSS_USE_ALPHA: 1
- name: Run ejectRAMDisk.sh
run: |
mount && \
ls /Volumes && \
./ejectRAMDisk.sh
env:
MKRAMDISK: "/Users/runner/work/mkRAMDisk.sh/mkRAMDisk.sh"