From 53886a38ffad9e74066f11228694c1c42555a1ef Mon Sep 17 00:00:00 2001 From: Akira Hayashi Date: Sat, 15 Jun 2024 09:30:58 +0900 Subject: [PATCH] Create test.yml --- .github/workflows/test.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..cc4feb7 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: Test Expect Self Parameter Action + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Run expect-self-parameter action + uses: ./ # This points to the local action in the repository + with: + params: > + [ + {"step_id": "foo", "param": "continue-on-error", "expected_value": "true"}, + {"step_id": "bar", "param": "timeout-minutes", "expected_value": "10"} + ] + + - id: foo + run: echo hello + continue-on-error: true + + - id: bar + run: sleep 5 + timeout-minutes: 10