From 8108c52f506628c8fa746da8a4e53606b097bf90 Mon Sep 17 00:00:00 2001 From: Boris Bera Date: Mon, 14 Oct 2024 10:33:42 -0400 Subject: [PATCH] chore(ci): install restic in test env --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb3e4ae..04130b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,11 +4,25 @@ on: push: branches: [master] +env: + RESTIC_VERSION: "0.17.1" + jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + + - name: Install restic@${{ env.RESTIC_VERSION }} + run: | + mkdir -p tools/restic + curl --fail --location --silent --show-error --output tools/restic/restic.bz2 \ + "https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic_${RESTIC_VERSION}_linux_amd64.bz2" + bzip2 -d tools/restic/restic.bz2 + chmod +x tools/restic/restic + echo "$GITHUB_WORKSPACE/tools/restic" >> "$GITHUB_PATH" + - run: restic version + - uses: actions/setup-go@v3 with: go-version: '^1.21'