Skip to content

Commit

Permalink
Separated different CI jobs in their respective files
Browse files Browse the repository at this point in the history
  • Loading branch information
phklive committed Mar 14, 2024
1 parent edca414 commit 4b87669
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 42 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Runs documentation related jobs.

name: doc

on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]

jobs:
doc:
name: doc stable on ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
- name: Doc
uses: actions-rs/cargo@v1
with:
command: doc
args:
- name: Check docs
uses: actions-rs/cargo@v1
env:
RUSTDOCFLAGS: -D warnings
with:
command: doc
args: --verbose --keep-going ${{matrix.args}}
44 changes: 2 additions & 42 deletions .github/workflows/ci.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Runs the CI
# Runs linting related jobs.

name: CI
name: lint

on:
push:
Expand Down Expand Up @@ -53,43 +53,3 @@ jobs:
run: cargo install cargo-make
- name: cargo make - clippy
run: cargo make clippy

doc:
name: doc stable on ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
- name: Doc
uses: actions-rs/cargo@v1
with:
command: doc
args:
- name: Check docs
uses: actions-rs/cargo@v1
env:
RUSTDOCFLAGS: -D warnings
with:
command: doc
args: --verbose --keep-going ${{matrix.args}}

test:
name: test stable on ubuntu-latest
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
- name: Install cargo make
run: cargo install cargo-make
- name: cargo make - format
run: cargo make test

27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Runs unit-testing related jobs.

name: unit

on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]

jobs:
test:
name: test stable on ubuntu-latest
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
- name: Install cargo make
run: cargo install cargo-make
- name: cargo make - format
run: cargo make test

0 comments on commit 4b87669

Please sign in to comment.