From afe0db9f6447f344dd063b83ae84aa5e59db3cec Mon Sep 17 00:00:00 2001 From: Enrico Minack Date: Mon, 4 Nov 2024 18:35:25 +0100 Subject: [PATCH] Add end-to-end test --- .github/workflows/workflow.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 5fd1dab..9a51899 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -35,6 +35,29 @@ jobs: run: npm run test # End to end save and restore + test-dont-save: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + fail-fast: false + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Generate files in working directory + shell: bash + run: __tests__/create-cache-files.sh ${{ runner.os }} test-cache + - name: Generate files outside working directory + shell: bash + run: __tests__/create-cache-files.sh ${{ runner.os }} ~/test-cache + - name: Save cache + uses: ./ + with: + key: test-${{ runner.os }}-${{ github.run_id }} + path: | + test-cache + ~/test-cache + save: ${{ matrix.os == 'ubuntu-latest' }} test-save: strategy: matrix: