* Add S3 File Host * Fix tests, set default ACL level to public * Refactor * Fix merge conflicts * Env fixes * Run formatter * Remove extra allocations
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
name: Unit Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
SQLX_OFFLINE: true
|
|
|
|
jobs:
|
|
test:
|
|
name: ${{ matrix.os }}-rust-${{ matrix.rust }}
|
|
runs-on: ${{ matrix.os }}
|
|
continue-on-error: ${{ matrix.rust != 'stable' }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
rust: [beta, nightly, stable]
|
|
|
|
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
|
|
env:
|
|
SQLX_OFFLINE: true
|
|
- 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 }}
|
|
S3_ACCESS_TOKEN: ${{ secrets.S3_ACCESS_TOKEN }}
|
|
S3_SECRET: ${{ secrets.S3_SECRET }}
|
|
S3_URL: ${{ secrets.S3_URL }}
|
|
S3_REGION: ${{ secrets.S3_REGION }}
|
|
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}
|
|
SQLX_OFFLINE: true |