Skip to content

Commit

Permalink
ci: improve v1 validate workflow (#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega committed Dec 16, 2023
1 parent c71e57d commit cbe75a9
Showing 1 changed file with 9 additions and 40 deletions.
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

0 comments on commit cbe75a9

Please sign in to comment.