Skip to content

Commit 6ecd1f2

Browse files
wesleywisereddyb
authored andcommitted
Add basic CI setup
1 parent 94c70a7 commit 6ecd1f2

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/main.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
on:
3+
push:
4+
branches-ignore: [main]
5+
pull_request:
6+
merge_group:
7+
8+
jobs:
9+
test:
10+
name: Test
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
build: [stable, beta, nightly]
15+
include:
16+
- build: stable
17+
os: ubuntu-latest
18+
rust: stable
19+
- build: beta
20+
os: ubuntu-latest
21+
rust: beta
22+
- build: nightly
23+
os: ubuntu-latest
24+
rust: nightly
25+
steps:
26+
- uses: actions/checkout@v3
27+
- name: Install Rust
28+
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
29+
- name: Build and run tests
30+
run: cargo test
31+
32+
rustfmt:
33+
name: Rustfmt
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v3
37+
- name: Install Rust
38+
run: rustup update stable && rustup default stable && rustup component add rustfmt
39+
- run: cargo fmt --check

0 commit comments

Comments
 (0)