Skip to content

Commit

Permalink
Merge pull request #46572 from crazy-max/ci-snapshotter
Browse files Browse the repository at this point in the history
ci: split and use matrix to test containerd backed image store
  • Loading branch information
thaJeztah authored Oct 16, 2023
2 parents 670bc0a + e1bacd1 commit 5c3d0fb
Show file tree
Hide file tree
Showing 6 changed files with 534 additions and 426 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/.test-prepare.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# reusable workflow
name: .test-prepare

# TODO: hide reusable workflow from the UI. Tracked in https://github.com/community/community/discussions/12025

on:
workflow_call:
outputs:
matrix:
description: Test matrix
value: ${{ jobs.run.outputs.matrix }}

jobs:
run:
runs-on: ubuntu-20.04
outputs:
matrix: ${{ steps.set.outputs.matrix }}
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Create matrix
id: set
uses: actions/github-script@v6
with:
script: |
let matrix = ['graphdriver'];
if ("${{ contains(github.event.pull_request.labels.*.name, 'containerd-integration') || github.event_name != 'pull_request' }}" == "true") {
matrix.push('snapshotter');
}
await core.group(`Set matrix`, async () => {
core.info(`matrix: ${JSON.stringify(matrix)}`);
core.setOutput('matrix', JSON.stringify(matrix));
});
Loading

0 comments on commit 5c3d0fb

Please sign in to comment.