-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 993 Bytes
/
captain-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
on:
pull_request:
branches: "main"
jobs:
test_captain:
runs-on: macos-11
strategy:
matrix:
include:
- name: captain
version: "1.11.4"
- name: captain@1
version: "1.11.4"
steps:
- uses: actions/checkout@v3
with:
path: homebrew-fake-tap-name # give it a fake name so we don't accidentally pull the one from github
- name: move it to the right directory
run: |
mkdir -p homebrew-tap /usr/local/Homebrew/Library/Taps/rwx-research
mv homebrew-fake-tap-name /usr/local/Homebrew/Library/Taps/rwx-research/
- name: Install captain & run it
run: |
set -o pipefail
brew install rwx-research/fake-tap-name/${{ matrix.name }} 2>&1 | tee install-output.txt
captain --version | grep ${{ matrix.version }}
- name: Ensure the integrity was verified
run: '! grep "Cannot verify integrity of" install-output.txt'