Skip to content

Commit

Permalink
chore: split lint from testing
Browse files Browse the repository at this point in the history
  • Loading branch information
katcipis committed Dec 21, 2023
1 parent 1384288 commit dbdd972
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit dbdd972

Please sign in to comment.