This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #402 from researchapps/patch-1
Update GitHub Action for Modern Syntax
- Loading branch information
Showing
5 changed files
with
81 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Test container-diff Action | ||
|
||
on: | ||
pull_request: [] | ||
|
||
jobs: | ||
test-container-diff: | ||
name: Test container-diff | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# Add more test cases here as necessary | ||
args: | ||
- vanessa/salad --type=file --output=./data.json --json | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Run container-diff | ||
uses: ./actions | ||
with: | ||
args: ${{ matrix.args }} | ||
- name: View output | ||
run: cat ./data.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: container-diff | ||
|
||
inputs: | ||
command: | ||
required: true | ||
description: "Container diff command to use (defaults to analyze)" | ||
default: analyze | ||
args: | ||
description: "String of arguments to pass to the container-diff command" | ||
default: help | ||
|
||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
|
||
echo "$@" | ||
/go/bin/container-diff ${@} | ||
command="${INPUT_COMMAND} ${INPUT_ARGS}" | ||
echo "container-diff ${command}" | ||
/usr/local/bin/container-diff ${command} |