From ce69bd29c2adec7c8148a909dc25c1c8b85d0401 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Thu, 15 Aug 2024 20:43:41 +0200 Subject: [PATCH 1/3] Add lint to workflow --- .github/workflows/rust.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index fa9b871..f21e94d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,23 +2,24 @@ name: Rust on: push: - branches: [ "master" ] + branches: ["master"] pull_request: - branches: [ "master" ] + branches: ["master"] env: CARGO_TERM_COLOR: always jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose - - name: Check formatting - run: cargo fmt --check --verbose + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Check linting + run: cargo clippy -- -D warnings + - name: Run tests + run: cargo test --verbose + - name: Check formatting + run: cargo fmt --check --verbose From 54f4811a47b653354340a18a670f1604ba79adfa Mon Sep 17 00:00:00 2001 From: Nicolas Date: Mon, 23 Sep 2024 17:41:32 +0200 Subject: [PATCH 2/3] Move formatting check & add matrixOS --- .github/workflows/rust.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f21e94d..54252e7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,16 +10,21 @@ env: CARGO_TERM_COLOR: always jobs: - build: - runs-on: ubuntu-latest + ci: + name: ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] steps: - uses: actions/checkout@v4 + - name: Check formatting + run: cargo fmt --check --verbose - name: Build run: cargo build --verbose - name: Check linting run: cargo clippy -- -D warnings - name: Run tests run: cargo test --verbose - - name: Check formatting - run: cargo fmt --check --verbose + From 7c8eb39bb073847d737b1edcdd33d54f1d199774 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 25 Sep 2024 19:47:59 +0200 Subject: [PATCH 3/3] remove matrix run --- .github/workflows/rust.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 54252e7..10b0908 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -11,11 +11,7 @@ env: jobs: ci: - name: ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -27,4 +23,3 @@ jobs: run: cargo clippy -- -D warnings - name: Run tests run: cargo test --verbose -