feat: Enable caching, use variables on specified version, and update … #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test setup-restic | |
on: | |
push: | |
paths: | |
- action.yml | |
- scripts/** | |
- .github/workflows/test.yaml | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
version: [latest, "${{ vars.SPECIFIED_VERSION }}"] | |
steps: | |
- name: Setup Restic using setup-restic | |
uses: AnimMouse/setup-restic@main | |
with: | |
version: ${{ matrix.version }} | |
- name: Test Restic by checking version | |
run: restic version |