mirror of
https://github.com/Xithrius/twitch-tui.git
synced 2024-08-16 09:01:11 +03:00
Moved CI into one file, lint depends on build
This commit is contained in:
parent
869fd53ab0
commit
3ab4f8ff57
@ -1,4 +1,4 @@
|
||||
name: Building & Testing
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
@ -10,7 +10,7 @@ env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-test:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
@ -34,3 +34,22 @@ jobs:
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
|
||||
lint:
|
||||
name: Formatter
|
||||
|
||||
needs: build-test
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install Rust
|
||||
run: |
|
||||
rustup update stable
|
||||
rustup default stable
|
||||
rustup component add rustfmt
|
||||
|
||||
- name: Check Formatting
|
||||
run: cargo fmt --all -- --check
|
24
.github/workflows/lint.yml
vendored
24
.github/workflows/lint.yml
vendored
@ -1,24 +0,0 @@
|
||||
name: Linting
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
rustfmt:
|
||||
name: Formatter
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install Rust
|
||||
run: |
|
||||
rustup update stable
|
||||
rustup default stable
|
||||
rustup component add rustfmt
|
||||
|
||||
- name: Check Formatting
|
||||
run: cargo fmt --all -- --check
|
Loading…
Reference in New Issue
Block a user