termscp/.github/workflows/linux.yml

30 lines
676 B
YAML
Raw Normal View History

2020-12-06 11:01:13 +01:00
name: Linux
2020-11-21 10:57:37 +01:00
2020-12-10 10:47:26 +01:00
on: [push, pull_request]
2020-11-21 10:57:37 +01:00
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
2020-12-18 10:47:37 +01:00
- uses: actions/checkout@v2
- name: Setup containers
run: docker-compose -f "tests/docker-compose.yml" up -d --build
2020-12-18 10:47:37 +01:00
- uses: actions-rs/toolchain@v1
with:
2021-04-05 10:04:53 +02:00
toolchain: stable
2020-12-18 10:47:37 +01:00
override: true
components: rustfmt, clippy
- name: Run tests
uses: actions-rs/cargo@v1
2020-12-18 10:47:37 +01:00
with:
command: test
args: --all-features --lib --no-fail-fast
- name: Format
run: cargo fmt --all -- --check
2020-12-18 10:47:37 +01:00
- name: Clippy
2021-03-26 21:51:53 +01:00
run: cargo clippy -- -Dwarnings