Skip to content

chore: release v0.10.3 #526

chore: release v0.10.3

chore: release v0.10.3 #526

Workflow file for this run

name: Compatibility
on:
pull_request:
paths-ignore:
- "**/*.md"
push:
branches:
- main
- "renovate/**"
paths-ignore:
- "**/*.md"
schedule:
- cron: "0 0 * * 0"
merge_group:
types: [checks_requested]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ${{ matrix.job.os }}
strategy:
matrix:
rust: [stable]
feature: [release]
job:
- os: macos-latest
- os: ubuntu-latest
# FIXME: windows compat tests temporarily not working
# - os: windows-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
if: github.event_name != 'pull_request'
with:
fetch-depth: 0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Setup Restic
uses: rustic-rs/setup-restic@main
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b # v1
with:
toolchain: stable
- name: Create fixtures
shell: bash
run: |
restic init
restic backup src
mv src/lib.rs lib.rs
restic backup src
mv lib.rs src/lib.rs
env:
RESTIC_REPOSITORY: ./tests/repository-fixtures/repo
RESTIC_PASSWORD: restic
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2
- name: Run Cargo Test
run: cargo test -r --test repositories --features ${{ matrix.feature }} -- test_restic_latest_repo_with_rustic_passes --exact --show-output --ignored
result:
name: Result (Compat)
runs-on: ubuntu-latest
needs:
- test
steps:
- name: Mark the job as successful
run: exit 0
if: success()
- name: Mark the job as unsuccessful
run: exit 1
if: "!success()"