Skip to content

Commit 1d2a817

Browse files
committed
feat: add ci
Taken from Flint's CI
1 parent e42f21c commit 1d2a817

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "cargo" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
10+
jobs:
11+
test:
12+
name: Test
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
strategy:
17+
matrix:
18+
toolchain:
19+
- stable
20+
- nightly
21+
steps:
22+
- uses: actions/checkout@v4
23+
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
24+
- run: cargo build --verbose
25+
- run: cargo test --verbose
26+
- run: cargo test --verbose --all-features
27+
28+
lint:
29+
name: Lint
30+
runs-on: ubuntu-latest
31+
permissions:
32+
contents: read
33+
steps:
34+
- uses: actions/checkout@v4
35+
- run: rustup update stable && rustup default stable
36+
- run: rustup component add clippy
37+
- run: cargo clippy --verbose --all-features

0 commit comments

Comments
 (0)