Skip to content

Mask and iterate

Mask and iterate #233

Workflow file for this run

# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
name: test
on: [push, pull_request]
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install 2to3, protobuf and black
run: pip3 install 2to3 protobuf black
# - name: Check out latest Vlsir dependencies
# working-directory: layout21protos
# run: |
# git clone https://github.com/Vlsir/Vlsir.git vlsir
# cd vlsir
# scripts/build.sh
# cd -
- name: Run cargo test
run: cargo test --all --verbose -- --show-output
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Run cargo fmt
continue-on-error: true # FIXME: remove
run: cargo fmt --all -- --check
- name: Run cargo clippy
continue-on-error: true # FIXME: remove
run: cargo clippy -- -D warnings