Skip to content

Commit

Permalink
ci: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed May 30, 2024
1 parent 6ea2f27 commit 6533017
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 11 deletions.
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

0 comments on commit 6533017

Please sign in to comment.