-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.04 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
name: ci
on:
push:
workflow_dispatch:
env:
TERM: xterm
jobs:
test:
runs-on: macos-latest
strategy:
matrix:
command:
- help
- clone
- link
- install-brew
- install-defaults
- install-fisher
- install-vim
steps:
- uses: actions/checkout@v4
- if: ${{ matrix.command == 'install-brew' }}
name: brew uninstall go
run: |
brew update
versions=$(brew list | grep -E '^go$|^go@' || true)
echo $versions
for v in $versions
do
echo "brew uninstall $v"
brew uninstall $v
done
- if: ${{ matrix.command == 'install-brew' }}
id: skip
name: Skip mas installs
run: |
ids=$(cat Brewfile | grep -oE "[0-9]{9,}" | tr '\n' ' ')
echo $ids
echo "ids=$ids" >> "$GITHUB_OUTPUT"
- run: ./dot.sh ${{ matrix.command }}
env:
HOMEBREW_BUNDLE_MAS_SKIP: ${{ steps.skip.outputs.ids }}