Skip to content

Commit

Permalink
Test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburnham committed Jul 31, 2024
1 parent 9bdd069 commit c40dc00
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
name: Test access to secrets
name: Test matrix includes

on:
on:
push:
branches:
- "matrix-includes"
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [main]
merge_group:

env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
assert-private-key:
if: github.event_name != 'pull_request' || github.event.action == 'enqueued'
check-downstream-compiles:
runs-on: ubuntu-latest
strategy:
matrix:
downstream: [zk-light-clients, loam]
include:
- light-client: aptos
downstream: zk-light-clients
- light-client: ethereum
downstream: zk-light-clients
steps:
- uses: actions/github-script@v6
with:
script: |
if ("$PRIVATE_KEY" == "") {
core.setFailed('Failed to access PRIVATE_KEY secret')
}
- uses: actions/checkout@v4
- if: ${{ matrix.downstream == "zk-light-clients" }}
run: |
echo "${{ matrix.light-client }}"
- if: ${{ matrix.downstream != "zk-light-clients" }}
run: |
echo "${{ matrix.downstream }}"

0 comments on commit c40dc00

Please sign in to comment.