mirror of
https://github.com/clap-rs/clap
synced 2025-03-05 07:47:40 +00:00
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
30 lines
776 B
YAML
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
|