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: improve v1 validate workflow #722

Merged
merged 3 commits into from
Dec 16, 2023
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
49 changes: 9 additions & 40 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
on:
push:
branches:
- '**'
- "**"
tags-ignore:
- v*
- v*

name: Validate

jobs:
check:
name: Check
name: Matrix Check
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-latest, macOS-latest]
rust: [stable]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -38,26 +38,6 @@ jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features

lints-rust:
name: Lint Rust
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
Expand All @@ -82,19 +62,8 @@ jobs:
command: clippy
args: --all-features -- -D warnings

lints-others:
name: Lint Support Files
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Check EditorConfig Compliance
uses: editorconfig-checker/action-editorconfig-checker@v1

lints:
name: Lint Rust & Support Files
runs-on: ubuntu-latest
needs: [lints-rust, lints-others]
steps:
- run: echo "All lints successful"
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
Loading