From dbdd97255b31bda80a13fb6705095a37667f563a Mon Sep 17 00:00:00 2001 From: Tiago Katcipis Date: Thu, 21 Dec 2023 23:05:23 +0100 Subject: [PATCH] chore: split lint from testing --- .github/workflows/test.yml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 61c5d02..a45319e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,14 +2,30 @@ name: tests on: [push] jobs: - build: - name: tests + lint: + name: lint + runs-on: ubuntu-22.04 + steps: - runs-on: ${{ matrix.os }} + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + components: rustfmt, clippy + + - name: checkout code + uses: actions/checkout@v1 + - name: lint + run: make lint + + tests: + name: tests + runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-22.04] + os: [macos-13, ubuntu-22.04] toolchain: ["stable", "nightly"] steps: @@ -19,13 +35,9 @@ jobs: with: toolchain: ${{ matrix.toolchain }} override: true - components: rustfmt, clippy - name: checkout code uses: actions/checkout@v1 - - name: lint - run: make lint - - name: test run: make test