diff --git a/.forgejo/workflows/integration.yml b/.forgejo/workflows/integration.yml index 8e65a4a..1b7eb99 100644 --- a/.forgejo/workflows/integration.yml +++ b/.forgejo/workflows/integration.yml @@ -10,7 +10,7 @@ jobs: ./forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo 1.19 ./forgejo-runner.sh setup export FORGEJO_RUNNER_LOGS=forgejo-runner.log - for example in echo container expression ; do + for example in echo container expression local-action ; do echo "============================ example-$example ===================" ./forgejo-test-helper.sh run_workflow testdata/example-$example http://root:admin1234@$(cat forgejo-ip):3000 root example-$example setup-forgejo $(cat forgejo-token) done diff --git a/testdata/example-local-action/.forgejo/local-action/action.yml b/testdata/example-local-action/.forgejo/local-action/action.yml new file mode 100644 index 0000000..d83d33c --- /dev/null +++ b/testdata/example-local-action/.forgejo/local-action/action.yml @@ -0,0 +1,16 @@ +inputs: + input-one: + default: 'one' + description: 'description one' + input-two-required: + description: 'description two' + required: true +outputs: + key: + description: 'output value' + value: "${{ steps.one.outputs.key }}" + +runs: + using: "composite" + steps: + - run: echo key=${{ inputs.input-two-required }} >> $GITHUB_OUTPUT diff --git a/testdata/example-local-action/.forgejo/workflows/test.yml b/testdata/example-local-action/.forgejo/workflows/test.yml new file mode 100644 index 0000000..2e9e8c5 --- /dev/null +++ b/testdata/example-local-action/.forgejo/workflows/test.yml @@ -0,0 +1,11 @@ +on: [push] +jobs: + ls: + runs-on: docker + steps: + - uses: actions/checkout@v3 + - id: local-action + uses: ./.forgejo/local-action + with: + input-two-required: "two" + - run: test "${{ steps.local-action.outputs.key }}" = "two"