From e96f29bd93041595ca6ee57b74bee8cab002250a Mon Sep 17 00:00:00 2001 From: Robbie Heywood Date: Sun, 12 Feb 2023 23:57:36 +0000 Subject: [PATCH] Add a couple of extra tests --- .github/workflows/download.yml | 32 +++++++++++++++++++++++++++++++- .github/workflows/upload.yml | 2 +- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/.github/workflows/download.yml b/.github/workflows/download.yml index a2e4c5a7..38074922 100644 --- a/.github/workflows/download.yml +++ b/.github/workflows/download.yml @@ -140,11 +140,41 @@ jobs: dry_run: true - name: Test run: test ${{ steps.download.outputs.dry_run }} == false + download-with-check-artifacts: + runs-on: ubuntu-latest + needs: wait + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Download + uses: ./ + with: + workflow: upload.yml + name: artifact + path: artifact + check_artifacts: true + - name: Test + run: cat artifact/sha | grep $GITHUB_SHA + download-with-search-artifacts: + runs-on: ubuntu-latest + needs: wait + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Download + uses: ./ + with: + workflow: upload.yml + name: artifact + path: artifact + search_artifacts: true + - name: Test + run: cat artifact/sha | grep $GITHUB_SHA download-many-search-artifacts: runs-on: ubuntu-latest needs: wait strategy: - # Use a matrix to run this job 40 times with 40 different artifacts. This catches any pagination issues (as GH's default page size is 30) + # Use a matrix to run this job 40 times with 40 different artifacts. This catches any pagination issues (as GitHub's default page size is 30) matrix: run-number: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 ] steps: diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml index 498d2847..198fc252 100644 --- a/.github/workflows/upload.yml +++ b/.github/workflows/upload.yml @@ -41,7 +41,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - # Use a matrix to run this job 40 times with 40 different artifacts. This catches any pagination issues (as GH's default page size is 30) + # Use a matrix to run this job 40 times with 40 different artifacts. This catches any pagination issues (as GitHub's default page size is 30) run-number: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 ] steps: - name: Setup outputs