Skip to content

rust-ui-template: use crossterm as the key / terminal backend #37

rust-ui-template: use crossterm as the key / terminal backend

rust-ui-template: use crossterm as the key / terminal backend #37

Workflow file for this run

on:
pull_request:
push:
branches:
- main
name: continuous-integration
env:
CLIPPY_OPTIONS: "-D warnings"
NU_VERSION: "0.83.1"
jobs:
fmt-clippy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Setup Rust toolchain
uses: actions-rust-lang/[email protected]
with:
rustflags: ""
- name: Format
run: cargo fmt --all -- --check
- name: Setup dependencies
run: |
cargo add "nu-plugin@$NU_VERSION"
cargo add "nu-protocol@$NU_VERSION" --features plugin
shell: bash
- name: Clippy
run: cargo clippy --workspace -- $CLIPPY_OPTIONS
tests:
strategy:
fail-fast: true
matrix:
platform: [windows-latest, macos-latest, ubuntu-20.04]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Setup Rust toolchain
uses: actions-rust-lang/[email protected]
with:
rustflags: ""
- name: Setup dependencies
run: |
cargo add "nu-plugin@$NU_VERSION"
cargo add "nu-protocol@$NU_VERSION" --features plugin
shell: bash
- name: Tests
run: cargo test --workspace