Skip to content

Commit cdfc108

Browse files
authored
GitHub actions (#5)
1 parent 0af5eb2 commit cdfc108

File tree

17 files changed

+407
-186
lines changed

17 files changed

+407
-186
lines changed

.github/workflows/ci.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
fmt:
7+
name: rustfmt / stable
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: dtolnay/rust-toolchain@stable
14+
with:
15+
components: rustfmt
16+
17+
- name: Rust rustfmt
18+
run: cargo fmt --all -- --check
19+
20+
clippy:
21+
name: clippy / stable
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- uses: dtolnay/rust-toolchain@stable
28+
with:
29+
components: clippy
30+
31+
- name: Run clippy
32+
run: cargo clippy --locked -- -D warnings
33+
34+
test:
35+
name: test / ${{ matrix.name }}
36+
runs-on: ${{ matrix.os }}
37+
38+
strategy:
39+
matrix:
40+
os:
41+
- ubuntu-latest
42+
- ubuntu-22.04-arm
43+
include:
44+
- name: stable
45+
rust: stable
46+
- name: beta
47+
rust: beta
48+
- name: stable
49+
rust: stable
50+
- name: 1.85.0
51+
rust: 1.85.0
52+
53+
steps:
54+
- uses: actions/checkout@v4
55+
56+
- run: git submodule update --init --recursive
57+
58+
- uses: dtolnay/rust-toolchain@stable
59+
with:
60+
toolchain: ${{ matrix.rust }}
61+
62+
- name: Run tests
63+
run: cargo test --locked --all

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ bin/
55
target/
66
lib/
77
.rust/
8-
Cargo.lock

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
[package]
22
name = "mustache"
33
description = "Rust implementation of Mustache"
4-
repository = "https://github.com/nickel-org/rust-mustache"
4+
repository = "https://github.com/Normation/rust-mustache"
55
documentation = "http://nickel-org.github.io/rust-mustache"
66
version = "0.9.0"
77
authors = ["erick.tryzelaar@gmail.com"]
88
license = "MIT/Apache-2.0"
9+
rust-version = "1.85.0"
10+
edition = "2024"
911

1012
[features]
1113
unstable = []
@@ -18,7 +20,6 @@ serde_json = "1.0.0"
1820

1921
[dev-dependencies]
2022
serde_derive = "1.0.0"
21-
serde_json = "1.0.0"
2223
tempdir = "0.3.4"
2324

2425
[[test]]

rustfmt.toml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)