stremio-shell-ng/.github/workflows/test.yml
Vladimir Borisov 95c718dd25
Version check
2026-03-10 10:54:23 +02:00

29 lines
868 B
YAML

name: Continuous integration
on: [pull_request, push]
jobs:
test:
runs-on: windows-latest
steps:
# The Windows runners have autocrlf enabled by default
# which causes failures for some of rustfmt's line-ending sensitive tests
- name: disable git eol translation
run: git config --global core.autocrlf false
- name: checkout
uses: actions/checkout@v3
- name: Check version
run: node stremiover.js check
- name: Stable with rustfmt and clippy
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
target: x86_64-pc-windows-msvc
components: rustfmt, clippy
- name: Lint code format
run: cargo fmt --all -- --check
- name: Lint code
run: cargo clippy --all -- -D warnings
- name: Test
run: cargo test --target x86_64-pc-windows-msvc