Skip to content

Commit 827b71d

Browse files
committed
CI
1 parent b55a0a0 commit 827b71d

File tree

3 files changed

+47
-3
lines changed

3 files changed

+47
-3
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
services:
14+
redis:
15+
image: redis:7
16+
ports:
17+
- 6379:6379
18+
options: >-
19+
--health-cmd "redis-cli ping"
20+
--health-interval 10s
21+
--health-timeout 5s
22+
--health-retries 5
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: Install Rust toolchain
28+
uses: dtolnay/rust-toolchain@stable
29+
30+
- name: Cache cargo
31+
uses: actions/cache@v4
32+
with:
33+
path: |
34+
~/.cargo/registry
35+
~/.cargo/git
36+
target
37+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
38+
39+
- name: Build
40+
run: cargo build
41+
42+
- name: Test
43+
run: cargo test

Cargo.lock

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ description = "mrubyedge-redis provides Redis and RedisConnectionPool classes fo
77
license = "BSD-3-Clause"
88

99
[dependencies]
10-
mrubyedge = { path = "../mrubyedge/mrubyedge" }
10+
mrubyedge = ">= 1.1.11"
1111
r2d2 = "0.8.10"
1212
redis = { version = "1.1.0", default-features = false, features = ["r2d2"] }
1313

1414
[dev-dependencies]
15-
mrubyedge = { path = "../mrubyedge/mrubyedge", features = ["default"] }
1615
mec-mrbc-sys = "3.3.1"

0 commit comments

Comments
 (0)