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

Refactor CI #80

Merged
merged 1 commit into from
May 30, 2024
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 .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "cargo"
directory: "/"
schedule:
Expand Down
54 changes: 43 additions & 11 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,58 @@
name: Continuous Integration
name: Continuous integration

on:
push:
branches: [main]
branches:
- main
pull_request:
branches: [main]

env:
CARGO_TERM_COLOR: always
CARGO_TERM_VERBOSE: true

jobs:
build:
runs-on: ubuntu-latest
test:
strategy:
matrix:
features: ["", "--features laz", "--features laz-parallel"]
features:
- ""
- "--features laz"
- "--features laz-parallel"
os:
- macos-latest
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
- name: Test
run: cargo test ${{ matrix.features }}
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
- name: Install Rust nightly
run: |
rustup update --no-self-update nightly
rustup component add --toolchain nightly rustfmt
rustup default nightly
- name: Format
run: cargo fmt --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --verbose ${{ matrix.features }}
- name: Clippy
run: cargo clippy --verbose ${{ matrix.features }}
- name: Run tests
run: cargo test --verbose ${{ matrix.features }}
run: cargo clippy --all-features
doc:
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -Dwarnings
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
- name: Doc
run: cargo doc --all-features
Loading