Skip to content

Commit 1640dd7

Browse files
committed
Update CI workflow file.
Adds support for all platforms that `cb` is build for and checks that they they install correctly. As well as verifies that they run.
1 parent 3178fa9 commit 1640dd7

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@ on:
44
branches:
55
- main
66
pull_request:
7+
78
jobs:
89
test-bot:
10+
runs-on: ${{ matrix.os }}
911
strategy:
1012
matrix:
11-
# os: [ubuntu-latest, macos-latest]
12-
os: [macos-latest]
13-
runs-on: ${{ matrix.os }}
13+
os: [macos-13, macos-latest, ubuntu-latest, ubuntu-24.04-arm64]
1414
steps:
15+
- name: Checkout Tap
16+
uses: actions/checkout@v4
17+
1518
- name: Set up Homebrew
1619
id: set-up-homebrew
1720
uses: Homebrew/actions/setup-homebrew@master
@@ -28,20 +31,13 @@ jobs:
2831
if: steps.cache.outputs.cache-hit != 'true'
2932
run: brew install-bundler-gems
3033

31-
- run: brew test-bot --only-cleanup-before
32-
33-
- run: brew test-bot --only-setup
34-
35-
- run: brew test-bot --only-tap-syntax
36-
37-
- run: brew test-bot --only-formulae
38-
if: github.event_name == 'pull_request'
34+
- name: Run Homebrew Test Bot
35+
run: |
36+
brew test-bot --tap=$GITHUB_REPOSITORY cb # Replaced <formula-name> with 'cb'
3937
env:
4038
DSN: ${{ secrets.DSN }}
39+
if: github.event_name == 'pull_request'
4140

42-
- name: Upload bottles as artifact
43-
if: always() && github.event_name == 'pull_request'
44-
uses: actions/upload-artifact@main
45-
with:
46-
name: bottles
47-
path: '*.bottle.*'
41+
- name: Test Formula
42+
run: |
43+
cb version

0 commit comments

Comments
 (0)