-
-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (37 loc) · 1.14 KB
/
macos-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
name: Installation Test (native)
on: push
# Available runners
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
jobs:
local:
name: Installation on ${{ matrix.os }} [${{ matrix.flag }}]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
flag: [-v, '', -q]
steps:
- uses: actions/checkout@v4
- name: Clean Up Environment
env:
REMOVE_PACKAGES: ${{ vars.REMOVE_PACKAGES }}
REMOVE_FILES: ${{ vars.REMOVE_FILES }}
run: |
if test -n "$REMOVE_PACKAGES"; then
brew uninstall --ignore-dependencies $REMOVE_PACKAGES
fi
if test -n "$REMOVE_FILES"; then
rm -f $REMOVE_FILES
fi
- name: Installation Info
env:
REPO_NAME: spywhere/dotfiles
run: |
sh install.sh -i
- name: Perform Installation
env:
FLAG: ${{ matrix.flag }}
FLAGS: ${{ vars.FLAGS }}
REPO_NAME: spywhere/dotfiles
run: |
sh install.sh --profile=ci -y $FLAG $FLAGS