-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 971 Bytes
/
test.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
name: test
'on':
push:
pull_request:
env:
HOMEBREW_NO_AUTO_UPDATE: 1
jobs:
osx:
name: "macOS ${{ matrix.os }}"
runs-on: "macos-${{ matrix.os }}"
strategy:
fail-fast: false
matrix:
os:
- "14"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install shellcheck
run: brew install shellcheck
- name: Lint
run: shellcheck mac
- name: Uninstall homebrew
run: |
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
- name: Uninstall apps
run: |
rm -Rf \
"/Applications/1Password.app" \
"/Applications/Docker.app" \
"/Applications/Google Chrome.app" \
"/Applications/iTerm.app" \
"/Applications/Rectangle.app" \
"/Applications/Slack.app"
- name: Test
run: sh mac