clap/.github/workflows/linux.yml
Pavan Kumar Sunkara 510f4cc055
Don't run actions on some events
push(master) is not run because they would be run on staging anyway.

pull_request(staging, trying) are not run because pull requests shouldn't be made to them
2020-04-10 19:50:12 +02:00

30 lines
776 B
YAML

name: Linux
on:
push:
branches: [staging, trying]
pull_request:
branches: [master]
types: [opened, reopened, synchronize]
jobs:
test-release:
name: Release Profile Tests
runs-on: ubuntu-latest
steps:
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Checkout
uses: actions/checkout@v2
- name: Cache cargo
uses: actions/cache@v1
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --release --features "yaml unstable"
- name: Cleanup cache
run: rm -rf ~/.cargo/registry/src