forked from rojo-rbx/rojo
30 lines
527 B
YAML
30 lines
527 B
YAML
name: CI
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
rust_version: [stable, "1.36.0"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Setup Rust toolchain
|
|
run: rustup default ${{ matrix.rust_version }}
|
|
|
|
- name: Build
|
|
run: cargo build --locked --verbose
|
|
|
|
- name: Run tests
|
|
run: cargo test --locked --verbose
|
|
|
|
- name: Rustfmt and Clippy
|
|
run: |
|
|
cargo fmt -- --check
|
|
cargo clippy
|
|
if: matrix.rust_version == 'stable' |