From 5cf6f35778dacbdc2081c601f491a8f505bb6b06 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Wed, 4 Oct 2023 15:31:52 +0200 Subject: [PATCH] add tests for actions/checkout --- .forgejo/workflows/integration.yml | 4 ++-- testdata/example-checkout/.forgejo/workflows/v3.yml | 8 ++++++++ testdata/example-checkout/.forgejo/workflows/v4.yml | 8 ++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 testdata/example-checkout/.forgejo/workflows/v3.yml create mode 100644 testdata/example-checkout/.forgejo/workflows/v4.yml diff --git a/.forgejo/workflows/integration.yml b/.forgejo/workflows/integration.yml index 7208ff0..11ac19e 100644 --- a/.forgejo/workflows/integration.yml +++ b/.forgejo/workflows/integration.yml @@ -17,10 +17,10 @@ jobs: tests: "cron" - version: "1.21.0-1-rc0" image: codeberg.org/forgejo-experimental/forgejo - tests: "${{ vars.V121_TESTS || 'echo pull-request container expression local-action docker-action if if-fail' }}" + tests: "${{ vars.V121_TESTS || 'echo checkout pull-request container expression local-action docker-action if if-fail' }}" - version: "1.20" image: codeberg.org/forgejo/forgejo - tests: "${{ vars.V120_TESTS || 'echo service container expression local-action docker-action if if-fail' }}" + tests: "${{ vars.V120_TESTS || 'echo checkout service container expression local-action docker-action if if-fail' }}" steps: - uses: actions/checkout@v3 - if: matrix.info.tests != 'none' diff --git a/testdata/example-checkout/.forgejo/workflows/v3.yml b/testdata/example-checkout/.forgejo/workflows/v3.yml new file mode 100644 index 0000000..33533a6 --- /dev/null +++ b/testdata/example-checkout/.forgejo/workflows/v3.yml @@ -0,0 +1,8 @@ +on: [push] +jobs: + ls: + runs-on: docker + steps: + - uses: actions/checkout@v3 + - run: | + ls ${{ github.workspace }} diff --git a/testdata/example-checkout/.forgejo/workflows/v4.yml b/testdata/example-checkout/.forgejo/workflows/v4.yml new file mode 100644 index 0000000..34c9b57 --- /dev/null +++ b/testdata/example-checkout/.forgejo/workflows/v4.yml @@ -0,0 +1,8 @@ +on: [push] +jobs: + ls: + runs-on: docker + steps: + - uses: actions/checkout@v4 + - run: | + ls ${{ github.workspace }}