-
-
Notifications
You must be signed in to change notification settings - Fork 20
36 lines (34 loc) · 1.02 KB
/
tests.yaml
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
---
name: Tests
"on":
push:
branches:
- main
pull_request:
schedule:
# Run tests every Monday at 9:17 to catch regressions.
- cron: "17 9 * * 1"
jobs:
tests:
name: Run full installation
runs-on: macos-14
steps:
- uses: actions/checkout@v4.1.7
- name: Install Zsh
run: |
brew install zsh
- name: Force default shell
# GitHub macOS images forces bash as default:
# https://github.com/actions/virtual-environments/blob/0d93dd2/images/macos/provision/configuration/shell-change.sh#L3-L5
run: |
sudo chsh -s "$(brew --prefix zsh)/bin/zsh" root
sudo chsh -s "$(brew --prefix zsh)/bin/zsh" "$USER"
- name: Fix GitHub worker
# aws-cli is already installed by hand in GitHub action runners.
# Remove it to avoid "brew install --formula awscli" error.
run: |
rm /usr/local/bin/aws
rm /usr/local/bin/aws_completer
- name: Run install
run: |
zsh ./install.sh