forked from cadey/xesite
26 lines
685 B
YAML
26 lines
685 B
YAML
|
name: Rust
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ master ]
|
||
|
pull_request:
|
||
|
branches: [ master ]
|
||
|
env:
|
||
|
CARGO_TERM_COLOR: always
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- name: Build
|
||
|
run: cargo build --all
|
||
|
- name: Run tests
|
||
|
run: |
|
||
|
cargo test
|
||
|
(cd lib/jsonfeed && cargo test)
|
||
|
(cd lib/patreon && cargo test)
|
||
|
env:
|
||
|
PATREON_ACCESS_TOKEN: ${{ secrets.PATREON_ACCESS_TOKEN }}
|
||
|
PATREON_CLIENT_ID: ${{ secrets.PATREON_CLIENT_ID }}
|
||
|
PATREON_CLIENT_SECRET: ${{ secrets.PATREON_CLIENT_SECRET }}
|
||
|
PATREON_REFRESH_TOKEN: ${{ secrets.PATREON_REFRESH_TOKEN }}
|