mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-21 07:49:17 +03:00
71 lines
1.7 KiB
YAML
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
|