Skip to content

Commit

Permalink
[workflow] Check scdoc pages
Browse files Browse the repository at this point in the history
Signed-off-by: Shinyzenith <[email protected]>
  • Loading branch information
Shinyzenith committed Jun 25, 2022
1 parent 7fee8db commit e1d63a5
Showing 1 changed file with 33 additions and 30 deletions.
63 changes: 33 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,49 @@ name: CI
on: [push, pull_request]

env:
CARGO_TERM_COLOR: always
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Build
run: cargo build --release
- name: Build
run: cargo build --release

clippy:
runs-on: ubuntu-latest
clippy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Clippy
run: cargo clippy
- name: Clippy
run: cargo clippy

test:
runs-on: ubuntu-latest
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Run tests
run: cargo test --verbose
- name: Run tests
run: cargo test --verbose

rustfmt:
runs-on: ubuntu-latest
rustfmt:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Check formatting
run: |
cargo fmt -- --check
- name: Check formatting
run: |
cargo fmt -- --check
sudo apt update
sudo apt install --no-install-recommends scdoc
for file in $(find . -type f -iname "*.scd"); do scdoc < $file > /dev/null; done

0 comments on commit e1d63a5

Please sign in to comment.