Skip to content

Commit

Permalink
Simplify workflow
Browse files Browse the repository at this point in the history
This PR refactors the tests workflow to use `matrix`.
  • Loading branch information
rail committed May 22, 2024
1 parent 23b2ac3 commit e57d834
Showing 1 changed file with 15 additions and 43 deletions.
58 changes: 15 additions & 43 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,48 +11,20 @@ on:
workflow_dispatch:

jobs:
cockroach-test:
name: cockroach formula tests
tests:
strategy:
matrix:
product:
- cockroach
- [email protected]
- [email protected]
- cockroach-sql
- ccloud
name: ${{ matrix.product }} formula tests
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install cockroach formula
run: brew install ./Formula/cockroach.rb
- name: test cockroach formula
run: brew test ./Formula/cockroach.rb
cockroach-231-test:
name: [email protected] formula tests
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install cockroach formula
run: brew install ./Formula/[email protected]
- name: test cockroach formula
run: brew test ./Formula/[email protected]
cockroach-222-test:
name: [email protected] formula tests
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install cockroach formula
run: brew install ./Formula/[email protected]
- name: test cockroach formula
run: brew test ./Formula/[email protected]
cockroach-sql-test:
name: cockroach-sql formula tests
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install cockroach-sql formula
run: brew install ./Formula/cockroach-sql.rb
- name: test cockroach formula
run: brew test ./Formula/cockroach-sql.rb
ccloud-test:
name: ccloud formula tests
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install ccloud formula
run: brew install ./Formula/ccloud.rb
- name: test ccloud formula
run: brew test ./Formula/ccloud.rb
- uses: actions/checkout@v4
- name: Install ${{ matrix.product }} formula
run: brew install ./Formula/${{matrix.product }}.rb
- name: test ${{ matrix.product }} formula
run: brew test ./Formula/${{ matrix.product }}.rb

0 comments on commit e57d834

Please sign in to comment.