-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 1.03 KB
/
b2-store.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: B2
on:
schedule:
# Once a month to ensure future
# b3sum versions are tested
- cron: "2 0 * * 1"
# Only when pushing to main branch
push:
tags-ignore:
- '**'
branches:
- main
defaults:
run:
shell: bash
env:
SNAPDIR_B2_STORE_TEST_BUCKET: bermilabs-test-bucket
SNAPDIR_B2_STORE_APPLICATION_KEY_ID: ${{ secrets.SNAPDIR_B2_STORE_APPLICATION_KEY_ID }}
SNAPDIR_B2_STORE_APPLICATION_KEY: ${{ secrets.SNAPDIR_B2_STORE_APPLICATION_KEY }}
jobs:
b2:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y wget curl unzip
sudo wget -q "https://github.com/BLAKE3-team/BLAKE3/releases/download/1.3.1/b3sum_linux_x64_bin" -O /usr/local/bin/b3sum
sudo chmod +x /usr/local/bin/b3sum
- name: Check out the repo
uses: actions/checkout@v3
- name: b2 integration test
run: |
./snapdir-b2-store test --store b2://$SNAPDIR_B2_STORE_TEST_BUCKET