-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (59 loc) · 1.66 KB
/
macos.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
name: Check provision
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
WORKSPACE_REPOSITORY_URL: https://github.com/rikuson/workspace.git
jobs:
cui:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Cache gem
uses: actions/cache@v3
with:
path: /Library/Ruby/Gems
key: ${{ runner.os }}-gem-${{ hashFiles('install.sh') }}
- name: Cache homebrew
uses: actions/cache@v3
with:
path: /Users/runner/Library/Caches/Homebrew
key: ${{ runner.os }}-homebrew-${{ hashFiles('install.sh', 'roles/*/tasks/homebrew.yml') }}
- name: Cache asdf
uses: actions/cache@v3
with:
path: /Users/runner/.asdf
key: ${{ runner.os }}-asdf-${{ hashFiles('install.sh') }}
- name: Install
run: /bin/zsh ./install.sh
- name: Play cui tasks
run: make cui
- name: Check cui spec
run: rake serverspec:cui
os:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Cache gem
uses: actions/cache@v3
with:
path: /Library/Ruby/Gems
key: ${{ runner.os }}-gem-${{ hashFiles('install.sh') }}
- name: Cache homebrew
uses: actions/cache@v3
with:
path: /Users/runner/Library/Caches/Homebrew
key: ${{ runner.os }}-homebrew-${{ hashFiles('install.sh') }}
- name: Cache asdf
uses: actions/cache@v3
with:
path: /Users/runner/.asdf
key: ${{ runner.os }}-asdf-${{ hashFiles('install.sh') }}
- name: Install
run: /bin/zsh ./install.sh
- name: Play os tasks
run: make os
- name: Check os spec
run: rake serverspec:os