Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add CI #11

Merged
merged 2 commits into from
Dec 31, 2022
Merged
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
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

permissions:
contents: read

on: [pull_request, push]

jobs:
check:
name: Check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install rust
uses: dtolnay/rust-toolchain@stable

- name: cargo check
run: cargo check

fmt:
name: Check style
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt

- name: cargo fmt -- --check
run: cargo fmt -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- name: cargo clippy --all-features -- -D warnings
run: cargo clippy --all-features -- -D warnings
1 change: 1 addition & 0 deletions src/parser/manifest/file_entry.rs
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@ pub struct FileEntry {
pub path: String,
pub link: String,
pub languages: Vec<String>,
#[allow(dead_code)]
chunks: Vec<(u64, u64, u32, u32)>,
}