mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-14 06:02:36 +00:00
maint/cicd ~ refactor style tests to decrease CI resource demands
This commit is contained in:
parent
c3ad2ff5fc
commit
8cbb251a2f
1 changed files with 27 additions and 22 deletions
49
.github/workflows/CICD.yml
vendored
49
.github/workflows/CICD.yml
vendored
|
@ -8,6 +8,33 @@ env:
|
|||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
style:
|
||||
name: Style
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ ubuntu-latest, windows-latest ]
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Install `rust` toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
override: true
|
||||
profile: minimal # minimal component installation (ie, no documentation)
|
||||
components: rustfmt, clippy
|
||||
- name: "`fmt` testing"
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
- name: "`clippy` testing"
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
args: -- -D warnings
|
||||
|
||||
build_linux:
|
||||
name: Build (linux)
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -40,7 +67,6 @@ jobs:
|
|||
target: ${{ matrix.target }}
|
||||
override: true
|
||||
profile: minimal # minimal component installation (ie, no documentation)
|
||||
components: rustfmt, clippy
|
||||
- name: Build
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
|
@ -53,16 +79,6 @@ jobs:
|
|||
use-cross: true
|
||||
command: test
|
||||
args: --target=${{ matrix.target }}
|
||||
- name: "`fmt` testing"
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
- name: "`clippy` testing"
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
args: -- -D warnings
|
||||
- name: Archive executable artifacts
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
|
@ -110,7 +126,6 @@ jobs:
|
|||
target: ${{ matrix.target }}
|
||||
override: true
|
||||
profile: minimal # minimal component installation (ie, no documentation)
|
||||
components: rustfmt, clippy
|
||||
- name: Build
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
|
@ -123,16 +138,6 @@ jobs:
|
|||
use-cross: true
|
||||
command: test
|
||||
args: --target=${{ matrix.target }}
|
||||
- name: "`fmt` testing"
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
- name: "`clippy` testing"
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
args: -- -D warnings
|
||||
- name: Archive executable artifacts
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
|
|
Loading…
Reference in a new issue