You've already forked AstralRinth
forked from didirus/AstralRinth
* Backblaze Driver * Update action to work with new tests * Fix minor issues * Run Formatter + Switch to reqwest json parser
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
name: Unit Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
name: ${{ matrix.os }}-rust-${{ matrix.rust }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
rust:
|
|
- stable
|
|
- beta
|
|
- nightly
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
name: Install toolchain
|
|
with:
|
|
profile: minimal
|
|
toolchain: ${{ matrix.rust }}
|
|
override: true
|
|
- name: Cache build artifacts
|
|
id: cache-build
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: target/**
|
|
key: ${{ runner.os }}-build-cache-${{ matrix.rust }}
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: build
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
env:
|
|
BACKBLAZE_BUCKET_ID: ${{ secrets.BACKBLAZE_BUCKET_ID }}
|
|
BACKBLAZE_KEY: ${{ secrets.BACKBLAZE_KEY }}
|
|
BACKBLAZE_KEY_ID: ${{ secrets.BACKBLAZE_KEY_ID }} |