Skip to content

Commit e0fd2ca

Browse files
committed
add github actions
1 parent 4d3b56b commit e0fd2ca

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

.github/workflows/format_check.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Rustfmt Check
2+
3+
on: [push]
4+
5+
env:
6+
CARGO_TERM_COLOR: always
7+
8+
jobs:
9+
lint:
10+
name: cargo fmt
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions-rust-lang/setup-rust-toolchain@v1
15+
with:
16+
components: rustfmt
17+
- name: Rustfmt Check
18+
uses: actions-rust-lang/rustfmt@v1
19+
- name: Machete
20+
uses: bnjbvr/cargo-machete@main
21+
- name: Clippy Check
22+
run: cargo clippy --benches --tests --bins --no-deps --all-features

.github/workflows/test_build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Building CSV2RDF and testing
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * SAT'
6+
push:
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions-rust-lang/setup-rust-toolchain@v1
18+
with:
19+
toolchain: ${{ github.event.schedule == '' && 'stable' || 'nightly' }}
20+
cache: false
21+
22+
- name: Build
23+
run: cargo build --verbose
24+
25+
end-to-end:
26+
name: test
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: actions-rust-lang/setup-rust-toolchain@v1
31+
with:
32+
toolchain: ${{ github.event.schedule == '' && 'stable' || 'nightly' }}
33+
cache: false
34+
35+
- name: Run Rust integration tests
36+
run: cargo test
37+

0 commit comments

Comments
 (0)