Skip to content

Commit a018cc6

Browse files
committed
ci: add ci
Signed-off-by: Sn0rt <[email protected]>
1 parent 0b4ea00 commit a018cc6

File tree

4 files changed

+65
-20
lines changed

4 files changed

+65
-20
lines changed

.github/workflows/test.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: rust test
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
push:
7+
branches: [ main ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
test:
14+
name: Test
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Install Rust toolchain
20+
uses: actions-rs/toolchain@v1
21+
with:
22+
profile: minimal
23+
toolchain: stable
24+
override: true
25+
26+
- name: Cache dependencies
27+
uses: actions/cache@v3
28+
with:
29+
path: |
30+
~/.cargo/registry
31+
~/.cargo/git
32+
target
33+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
34+
35+
- name: Run tests
36+
uses: actions-rs/cargo@v1
37+
with:
38+
command: test
39+
args: --verbose
40+
41+
- name: Run clippy
42+
uses: actions-rs/cargo@v1
43+
with:
44+
command: clippy
45+
args: -- -D warnings

Cargo.lock

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

src/lambda_vm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::lambda_parse::{parse_lambda, LambdaExpression};
22
use std::rc::Rc;
33
use uuid::Uuid;
4-
use log::{debug, trace, info};
4+
use log::{debug, trace};
55
use colored::*;
66

77
pub struct VM {

src/repl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::lambda_parse::{parse_lambda, LambdaExpression};
22
use crate::lambda_vm::{VM, church_decode};
33
use rustyline::error::ReadlineError;
44
use rustyline::Editor;
5-
use log::{info, error, debug, trace, LevelFilter};
5+
use log::{debug, LevelFilter};
66
use colored::*;
77
use std::rc::Rc;
88

0 commit comments

Comments
 (0)