Skip to content

Commit 2f0a988

Browse files
Add basic workflows (#4)
* Add basic workflows Signed-off-by: Marcela Melara <[email protected]> * Simplify cargo fmt run, run all tests Signed-off-by: Marcela Melara <[email protected]> * fix yaml issues Signed-off-by: Marcela Melara <[email protected]> --------- Signed-off-by: Marcela Melara <[email protected]>
1 parent bc78790 commit 2f0a988

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
4+
- package-ecosystem: github-actions
5+
directory: "/"
6+
schedule:
7+
interval: weekly
8+
9+
- package-ecosystem: cargo
10+
directory: "/"
11+
schedule:
12+
interval: daily

.github/workflows/run-tests.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Run tests
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions: read-all
10+
jobs:
11+
tests:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
- name: Format
17+
run: |
18+
cargo fmt --check
19+
- name: Build
20+
run: |
21+
cargo build --profile release
22+
- name: Run all tests
23+
run: |
24+
cargo test --all-features --profile release

0 commit comments

Comments
 (0)