From 5f86a1a7648dee1e556368e80fd0f199c30c3d2b Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sun, 3 Sep 2023 00:20:55 +0200 Subject: [PATCH] run with and without cache in different jobs --- .github/workflows/test.yml | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 49c4870..6718ca6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,24 +40,40 @@ jobs: - name: Check out code uses: actions/checkout@v3 - - name: Test without cache + - name: Test id: test uses: ./ with: blogc-version: ${{ matrix.version }} - - name: Dump outputs without cache + - name: Dump outputs run: | echo "Version: ${{ steps.test.outputs.blogc-version }}" echo "Cache hit: ${{ steps.test.outputs.cache-hit }}" - - name: Test with cache - id: test2 + # FIXME: deduplicate + test-check-cache: + name: Test setup-blogc with cache + runs-on: ubuntu-latest + needs: test-check + + strategy: + matrix: + version: + - HEAD + - LATEST + - "v0.20.0" + - "0.19.0" + - "3f6ae823cd8ff8049abeca2be495c727563c919e" + + steps: + - name: Test + id: test uses: ./ with: blogc-version: ${{ matrix.version }} - - name: Dump outputs with cache + - name: Dump outputs run: | - echo "Version: ${{ steps.test2.outputs.blogc-version }}" - echo "Cache hit: ${{ steps.test2.outputs.cache-hit }}" + echo "Version: ${{ steps.test.outputs.blogc-version }}" + echo "Cache hit: ${{ steps.test.outputs.cache-hit }}"