Skip to content

Commit

Permalink
run with and without cache in different jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelmartins committed Sep 2, 2023
1 parent 666f864 commit 5f86a1a
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

0 comments on commit 5f86a1a

Please sign in to comment.