Skip to content

Commit 55155e0

Browse files
committed
Add CI workflow
1 parent c5f9d91 commit 55155e0

2 files changed

Lines changed: 25 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
merge_group:
6+
workflow_dispatch:
7+
workflow_call:
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
test:
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, windows-latest, macos-latest]
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- uses: actions/checkout@v6
20+
- uses: dtolnay/rust-toolchain@stable
21+
- run: cargo test
22+
- run: cargo fmt --all --check
23+
- run: cargo clippy --all-targets --all-features -- -D warnings
24+
- run: cargo rustdoc --all-features -- -D warnings

.github/workflows/release.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,14 @@
11
name: Release
22

33
on:
4-
pull_request:
5-
merge_group:
64
workflow_dispatch:
75
push:
8-
branches:
9-
- main
106
tags:
117
- "v*"
128

139
jobs:
1410
test:
15-
strategy:
16-
matrix:
17-
os: [ubuntu-latest, windows-latest, macos-latest]
18-
runs-on: ${{ matrix.os }}
19-
steps:
20-
- uses: actions/checkout@v6
21-
- uses: dtolnay/rust-toolchain@stable
22-
- run: cargo test
23-
- run: cargo fmt --all --check
24-
- run: cargo clippy --all-targets --all-features -- -D warnings
25-
- run: cargo rustdoc --all-features -- -D warnings
11+
uses: ./.github/workflows/ci.yml
2612

2713
publish:
2814
if: github.ref_type == 'tag'

0 commit comments

Comments
 (0)