Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 5 additions & 17 deletions .github/workflows/e2e-action-container-structure-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ jobs:
test "${{ steps.cst.outputs.failed }}" = "0"

metadata-platform-runtime:
name: Test with metadata, platform, and runtime inputs
name: Test with platform and runtime inputs
needs: [preflight]
runs-on: ubuntu-latest
steps:
Expand All @@ -349,23 +349,12 @@ jobs:
cat > .tmp/cst-alpine.yml << 'EOF'
schemaVersion: "2.0.0"
fileExistenceTests:
- name: Echo hello
command: echo
args: ["hello"]
expectedOutput: ["hello"]
EOF

- name: Create metadata file
run: |
cat > .tmp/cst-metadata.json << 'EOF'
{
"config": {
"Env": ["FOO=bar"]
}
}
- name: Busybox present
path: /bin/sh
shouldExist: true
EOF

- name: Run container structure tests with metadata/platform/runtime
- name: Run container structure tests with platform/runtime
if: ${{ inputs.mode == 'ref' }}
id: cst
uses: devops-infra/action-container-structure-test@v1
Expand All @@ -375,7 +364,6 @@ jobs:
driver: docker
platform: linux/amd64
runtime: runc
metadata: .tmp/cst-metadata.json
output: text

- name: Run container structure tests via docker image (preview)
Expand Down
Loading