roc/.github/workflows/ci.yml
2019-11-20 07:15:07 -05:00

71 lines
1.7 KiB
YAML

on: [push, pull_request]
name: CI
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install LLVM
run: sudo ./ci/install-llvm.sh 8
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
name: cargo update (needed for Inkwell)
with:
command: update
- uses: actions-rs/cargo@v1
name: cargo test
with:
command: test
args: --release
fmt:
name: Rustfmt
runs-on: ubuntu-latest
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
name: cargo update (needed for Inkwell)
with:
command: update
- uses: actions-rs/cargo@v1
name: cargo fmt --check
with:
command: fmt
args: --all -- --check
# clippy:
# name: Clippy
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: Install LLVM
# run: sudo ./ci/install-llvm.sh 8
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# override: true
# - run: rustup component add clippy
# - uses: actions-rs/cargo@v1
# name: update cargo (needed for Inkwell)
# with:
# command: update
# - uses: actions-rs/cargo@v1
# name: cargo clippy
# with:
# command: clippy
# args: -- -D warnings