Update restic version
This commit is contained in:
parent
ac509153ea
commit
af04534ac5
3 changed files with 17 additions and 6 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -23,7 +23,13 @@ jobs:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
|
|
||||||
- name: Install kcov and shellcheck
|
- name: Install kcov and shellcheck
|
||||||
run: sudo apt-get install -y kcov shellcheck restic
|
run: sudo apt-get install -y kcov shellcheck
|
||||||
|
|
||||||
|
- name: Install restic
|
||||||
|
run: |
|
||||||
|
wget https://github.com/restic/restic/releases/download/v0.12.0/restic_0.12.0_linux_amd64.bz2
|
||||||
|
bzip2 -d restic_0.12.0_linux_amd64.bz2
|
||||||
|
sudo cp restic_0.12.0_linux_amd64 /usr/local/bin/restic
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: test/test.sh
|
run: test/test.sh
|
||||||
|
|
13
.github/workflows/docker.yml
vendored
13
.github/workflows/docker.yml
vendored
|
@ -1,12 +1,11 @@
|
||||||
# This is a basic workflow to help you get started with Actions
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
name: Docker
|
name: CI
|
||||||
|
|
||||||
# Controls when the action will run.
|
# Controls when the action will run.
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
pull_request:
|
||||||
- master
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
@ -24,7 +23,13 @@ jobs:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
|
|
||||||
- name: Install kcov and shellcheck
|
- name: Install kcov and shellcheck
|
||||||
run: sudo apt-get install -y kcov shellcheck restic
|
run: sudo apt-get install -y kcov shellcheck
|
||||||
|
|
||||||
|
- name: Install restic
|
||||||
|
run: |
|
||||||
|
wget https://github.com/restic/restic/releases/download/v0.12.0/restic_0.12.0_linux_amd64.bz2
|
||||||
|
bzip2 -d restic_0.12.0_linux_amd64.bz2
|
||||||
|
sudo cp restic_0.12.0_linux_amd64 /usr/local/bin/restic
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: test/test.sh
|
run: test/test.sh
|
||||||
|
|
|
@ -85,7 +85,7 @@ test-restic-incomplete-snapshot () {
|
||||||
TIMESTAMP="$(date +%F_%H-%M-%S --date="2021-01-01")"
|
TIMESTAMP="$(date +%F_%H-%M-%S --date="2021-01-01")"
|
||||||
OUTPUT="$(./backup.sh -i "$TEST_TMP/server/world" -r "$TEST_TMP/backups-restic" -s "$SCREEN_TMP" -f "$TIMESTAMP")"
|
OUTPUT="$(./backup.sh -i "$TEST_TMP/server/world" -r "$TEST_TMP/backups-restic" -s "$SCREEN_TMP" -f "$TIMESTAMP")"
|
||||||
assertEquals 1 "$(restic list snapshots -r "$TEST_TMP/backups-restic" | wc -l)"
|
assertEquals 1 "$(restic list snapshots -r "$TEST_TMP/backups-restic" | wc -l)"
|
||||||
# assertContains "$OUTPUT" "Incomplete snapshot taken"
|
assertContains "$OUTPUT" "Incomplete snapshot taken"
|
||||||
}
|
}
|
||||||
|
|
||||||
test-restic-no-snapshot () {
|
test-restic-no-snapshot () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue