Skip to content

Commit 57ed558

Browse files
committed
feat: add ci
1 parent 80396a9 commit 57ed558

File tree

3 files changed

+50
-1
lines changed

3 files changed

+50
-1
lines changed

.github/actions/setup-rust/action.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: 'Rust setup'
2+
description: 'Rust setup, including cache configuration'
3+
inputs:
4+
components:
5+
description: 'Cargo components'
6+
required: false
7+
targets:
8+
description: 'Cargo target'
9+
required: false
10+
toolchain:
11+
description: 'Rustup toolchain'
12+
required: false
13+
default: 'stable'
14+
15+
runs:
16+
using: 'composite'
17+
steps:
18+
- name: Setup Rust
19+
uses: dtolnay/rust-toolchain@stable
20+
with:
21+
toolchain: ${{ inputs.toolchain }}
22+
targets: ${{ inputs.targets }}
23+
components: ${{ inputs.components }}
24+
- name: Add Targets
25+
if: ${{ inputs.targets }}
26+
run: rustup target add ${{ inputs.targets }}
27+
shell: bash
28+
- uses: Swatinem/rust-cache@v2

.github/workflows/tests.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on: [push]
2+
3+
name: Run tests
4+
5+
jobs:
6+
tests:
7+
name: tests
8+
runs-on: ubuntu-latest
9+
continue-on-error: true
10+
env:
11+
RUSTFLAGS: -D warnings
12+
CARGO_TERM_COLOR: always
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Setup Rust
16+
uses: ./.github/actions/setup-rust
17+
18+
- name: Install latest nextest release
19+
uses: taiki-e/install-action@nextest
20+
21+
- name: Run tests
22+
run: cargo nextest run --all-targets

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ version = "0.1.0"
44
edition = "2021"
55
authors = ["DarkSky <darksky2048@gmail.com>"]
66
license = "AGPL-3.0-only"
7-
license-file = "LICENSE"
87
keywords = ["sqlite", "vfs", "http"]
98
description = "Query sqlite database over http"
109
repository = "https://github.com/darkskygit/sqlite-vfs-http"

0 commit comments

Comments
 (0)