Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .git-blame-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt

# Format the world!
57bf2000e39dccfc2f8b6e41d6c6f3eac38a3886
24 changes: 20 additions & 4 deletions .github/workflows/test_build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,23 @@ name: CI
on: [push, pull_request]

jobs:
format:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
- uses: Swatinem/rust-cache@v1
- name: Check Rust Formatting
run: cargo fmt --check

test:
needs: format
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
Expand All @@ -18,7 +34,7 @@ jobs:
- uses: Swatinem/rust-cache@v1
- uses: taiki-e/install-action@cargo-llvm-cov
- uses: taiki-e/install-action@nextest
- name: Run tests
- name: Run Tests
run: cargo llvm-cov nextest

build:
Expand All @@ -37,9 +53,9 @@ jobs:
profile: minimal
toolchain: stable
- uses: Swatinem/rust-cache@v1
- name: Build torrust tracker
- name: Build Torrust Tracker
run: cargo build --release
- name: Upload build artifact
- name: Upload Build Artifact
uses: actions/upload-artifact@v2
with:
name: torrust-tracker
Expand All @@ -49,7 +65,7 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download build artifact
- name: Download Build Artifact
uses: actions/download-artifact@v2
with:
name: torrust-tracker
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
/.idea/
/config.toml
/data.db
/.vscode/launch.json
4 changes: 4 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
max_width = 130
imports_granularity = "Module"
group_imports = "StdExternalCrate"

Loading