roc/.github/workflows/ci.yml

56 lines
1.2 KiB
YAML
Raw Normal View History

2019-11-15 02:47:11 +03:00
on: [push, pull_request]
2019-11-15 02:21:59 +03:00
2019-11-15 02:47:11 +03:00
name: CI
2019-11-15 02:21:59 +03:00
jobs:
2019-11-15 02:47:11 +03:00
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install LLVM
2019-11-15 02:58:10 +03:00
run: sudo ./ci/install-llvm.sh 8
2019-11-15 02:47:11 +03:00
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: update
2019-11-15 02:47:11 +03:00
- uses: actions-rs/cargo@v1
with:
command: test
2019-11-15 02:21:59 +03:00
2019-11-15 02:47:11 +03:00
fmt:
name: Rustfmt
2019-11-15 02:21:59 +03:00
runs-on: ubuntu-latest
2019-11-15 02:47:11 +03:00
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
2019-11-15 02:21:59 +03:00
2019-11-15 02:47:11 +03:00
clippy:
name: Clippy
runs-on: ubuntu-latest
2019-11-15 02:21:59 +03:00
steps:
2019-11-15 02:47:11 +03:00
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings