Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Commit

Permalink
chore: configure new workflows for 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nashiradeer committed Jun 11, 2024
1 parent b5cca16 commit 66e9ef6
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:

env:
CARGO_TERM_COLOR: always
RUST_VERSION: "1.78"

jobs:
check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install Rust ${{ env.RUST_VERSION }}
run: rustup install ${{ env.RUST_VERSION }}
- name: Set Rust ${{ env.RUST_VERSION }} as default
run: rustup default ${{ env.RUST_VERSION }}
- name: Check with default features
run: cargo check --config 'build.rustflags = ["-Dwarnings"]'
- name: Check with all features
run: cargo check --config 'build.rustflags = ["-Dwarnings"]' --all-features
- name: Install Clippy
run: rustup component add clippy
- name: Run Clippy with default features
run: cargo clippy --config 'build.rustflags = ["-Dwarnings"]'
- name: Run Clippy with all features
run: cargo clippy --config 'build.rustflags = ["-Dwarnings"]' --all-features
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:

env:
CARGO_TERM_COLOR: always
RUST_VERSION: "1.78"

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install Rust ${{ env.RUST_VERSION }}
run: rustup install ${{ env.RUST_VERSION }}
- name: Set Rust ${{ env.RUST_VERSION }} as default
run: rustup default ${{ env.RUST_VERSION }}
- name: Test with default features
run: cargo test
- name: Test with all features
run: cargo test --all-features

0 comments on commit 66e9ef6

Please sign in to comment.