Skip to content

Commit f2fe505

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 cd70391 commit f2fe505

File tree

1 file changed

+13
-31
lines changed

1 file changed

+13
-31
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,26 @@ 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]
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
1821

19-
- name: Cache Homebrew Bundler RubyGems
20-
id: cache
21-
uses: actions/cache@v4
22-
with:
23-
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
24-
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
25-
restore-keys: ${{ runner.os }}-rubygems-
26-
27-
- name: Install Homebrew Bundler RubyGems
28-
if: steps.cache.outputs.cache-hit != 'true'
29-
run: brew install-bundler-gems
30-
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'
39-
env:
40-
DSN: ${{ secrets.DSN }}
22+
- name: Tap and Install Formula
23+
run: |
24+
brew tap $GITHUB_REPOSITORY
25+
brew install cb
4126
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.*'
27+
- name: Test Formula
28+
run: |
29+
cb version

0 commit comments

Comments
 (0)