Skip to content

Commit 1ecc013

Browse files
Bump version to 0.0.18 (#91)
* Bump version to 0.0.18 * Formatting of yaml files
1 parent c640323 commit 1ecc013

File tree

4 files changed

+185
-231
lines changed

4 files changed

+185
-231
lines changed

.github/dependabot.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
version: 2
22
updates:
3-
- package-ecosystem: cargo
4-
directory: /
5-
schedule:
6-
interval: daily
7-
open-pull-requests-limit: 10
3+
- package-ecosystem: cargo
4+
directory: /
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
88

9-
- package-ecosystem: "github-actions"
10-
directory: "/"
11-
schedule:
12-
# Check for updates to GitHub Actions every weekday
13-
interval: "daily"
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
# Check for updates to GitHub Actions every weekday
13+
interval: "daily"

.github/workflows/rust.yml

+160-199
Original file line numberDiff line numberDiff line change
@@ -1,209 +1,170 @@
11
{
22
"name": "CI",
3-
"on": {
4-
"push": {
5-
"branches": [
6-
"trunk",
7-
"v*",
8-
"ci/*"
9-
]
3+
"on":
4+
{
5+
"push": { "branches": ["trunk", "v*", "ci/*"] },
6+
"pull_request": { "branches": ["trunk", "v*"] },
107
},
11-
"pull_request": {
12-
"branches": [
13-
"trunk",
14-
"v*"
15-
]
16-
}
17-
},
18-
"jobs": {
19-
"check": {
20-
"name": "Check",
21-
"runs-on": "ubuntu-latest",
22-
"strategy": {
23-
"fail-fast": false,
24-
"matrix": {
25-
"rust": [
26-
"stable",
27-
"beta",
28-
"nightly"
29-
# "1.55.0" TODO: Pick latest stable version when we release 2.0
30-
]
31-
}
32-
},
33-
"steps": [
34-
{
35-
"uses": "actions/checkout@v4",
36-
"name": "Checkout"
37-
},
38-
{
39-
"uses": "actions-rs/toolchain@v1",
40-
"with": {
41-
"profile": "minimal",
42-
"toolchain": "${{ matrix.rust }}",
43-
"override": true
44-
},
45-
"name": "Install Rust ${{ matrix.rust }}"
46-
},
47-
{
48-
"uses": "actions-rs/cargo@v1",
49-
"with": {
50-
"command": "check",
51-
"args": "--all-features"
52-
},
53-
"name": "Run `cargo check`"
8+
"jobs":
9+
{
10+
"check":
11+
{
12+
"name": "Check",
13+
"runs-on": "ubuntu-latest",
14+
"strategy": { "fail-fast": false, "matrix": { "rust": [
15+
"stable",
16+
"beta",
17+
"nightly",
18+
# "1.55.0" TODO: Pick latest stable version when we release 2.0
19+
] } },
20+
"steps":
21+
[
22+
{ "uses": "actions/checkout@v4", "name": "Checkout" },
23+
{
24+
"uses": "actions-rs/toolchain@v1",
25+
"with":
26+
{
27+
"profile": "minimal",
28+
"toolchain": "${{ matrix.rust }}",
29+
"override": true,
30+
},
31+
"name": "Install Rust ${{ matrix.rust }}",
32+
},
33+
{
34+
"uses": "actions-rs/cargo@v1",
35+
"with": { "command": "check", "args": "--all-features" },
36+
"name": "Run `cargo check`",
37+
},
38+
{
39+
"uses": "actions-rs/cargo@v1",
40+
"with": { "command": "check", "args": "--examples" },
41+
"name": "Check examples",
42+
},
43+
],
5444
},
55-
{
56-
"uses": "actions-rs/cargo@v1",
57-
"with": {
58-
"command": "check",
59-
"args": "--examples"
60-
},
61-
"name": "Check examples"
62-
}
63-
]
64-
},
65-
"test": {
66-
"name": "Test",
67-
"runs-on": "ubuntu-latest",
68-
"strategy": {
69-
"matrix": {
70-
"rust": [
71-
"stable",
72-
# "1.55.0" TODO: Pick latest stable version when we release 2.0
73-
]
74-
}
75-
},
76-
"steps": [
77-
{
78-
"uses": "actions/checkout@v4",
79-
"name": "Checkout"
45+
"test":
46+
{
47+
"name": "Test",
48+
"runs-on": "ubuntu-latest",
49+
"strategy": { "matrix": { "rust": [
50+
"stable",
51+
# "1.55.0" TODO: Pick latest stable version when we release 2.0
52+
] } },
53+
"steps":
54+
[
55+
{ "uses": "actions/checkout@v4", "name": "Checkout" },
56+
{
57+
"uses": "actions-rs/toolchain@v1",
58+
"with":
59+
{
60+
"profile": "minimal",
61+
"toolchain": "${{ matrix.rust }}",
62+
"override": true,
63+
},
64+
"name": "Install Rust ${{ matrix.rust }}",
65+
},
66+
{
67+
"run": "cargo test --all --features proc-macro2",
68+
"name": "Run `cargo test`",
69+
"env": { "RUSTFLAGS": "-D warnings" },
70+
},
71+
],
8072
},
81-
{
82-
"uses": "actions-rs/toolchain@v1",
83-
"with": {
84-
"profile": "minimal",
85-
"toolchain": "${{ matrix.rust }}",
86-
"override": true
87-
},
88-
"name": "Install Rust ${{ matrix.rust }}"
73+
"test_project":
74+
{
75+
"name": "Test Project",
76+
"runs-on": "ubuntu-latest",
77+
"strategy": { "matrix": { "rust": [
78+
"stable",
79+
# "1.55.0" TODO: Pick latest stable version when we release 0.1
80+
] } },
81+
"steps":
82+
[
83+
{ "uses": "actions/checkout@v4", "name": "Checkout" },
84+
{
85+
"uses": "actions-rs/toolchain@v1",
86+
"with":
87+
{
88+
"profile": "minimal",
89+
"toolchain": "${{ matrix.rust }}",
90+
"override": true,
91+
},
92+
"name": "Install Rust ${{ matrix.rust }}",
93+
},
94+
{
95+
"run": "cd test && cargo run",
96+
"name": "Run the test project",
97+
"env": { "RUSTFLAGS": "-D warnings" },
98+
},
99+
],
89100
},
90-
{
91-
"run": "cargo test --all --features proc-macro2",
92-
"name": "Run `cargo test`",
93-
"env": {
94-
"RUSTFLAGS": "-D warnings"
95-
}
96-
}
97-
]
98-
},
99-
"test_project": {
100-
"name": "Test Project",
101-
"runs-on": "ubuntu-latest",
102-
"strategy": {
103-
"matrix": {
104-
"rust": [
105-
"stable",
106-
# "1.55.0" TODO: Pick latest stable version when we release 0.1
107-
]
108-
}
109-
},
110-
"steps": [
111-
{
112-
"uses": "actions/checkout@v4",
113-
"name": "Checkout"
101+
"lints":
102+
{
103+
"name": "Lints",
104+
"runs-on": "ubuntu-latest",
105+
"steps":
106+
[
107+
{ "uses": "actions/checkout@v4", "name": "Checkout" },
108+
{
109+
"uses": "actions-rs/toolchain@v1",
110+
"with":
111+
{
112+
"profile": "minimal",
113+
"toolchain": "stable",
114+
"override": true,
115+
"components": "rustfmt, clippy",
116+
},
117+
"name": "Install Rust stable",
118+
},
119+
{
120+
"uses": "actions-rs/cargo@v1",
121+
"with": { "command": "fmt", "args": "--all -- --check" },
122+
"name": "Run `cargo fmt`",
123+
},
124+
{
125+
"uses": "actions-rs/cargo@v1",
126+
"with":
127+
{
128+
"command": "clippy",
129+
"args": "--all-features -- -D warnings",
130+
},
131+
"name": "Run `cargo clippy`",
132+
},
133+
],
114134
},
115-
{
116-
"uses": "actions-rs/toolchain@v1",
117-
"with": {
118-
"profile": "minimal",
119-
"toolchain": "${{ matrix.rust }}",
120-
"override": true
121-
},
122-
"name": "Install Rust ${{ matrix.rust }}"
135+
"coverage":
136+
{
137+
"name": "Code Coverage",
138+
"runs-on": "ubuntu-latest",
139+
"steps":
140+
[
141+
{ "uses": "actions/checkout@v4", "name": "Checkout" },
142+
{
143+
"uses": "actions-rs/toolchain@v1",
144+
"with":
145+
{
146+
"profile": "minimal",
147+
"toolchain": "nightly",
148+
"override": true,
149+
},
150+
"name": "Install Rust nightly",
151+
},
152+
{
153+
"name": "Run cargo-tarpaulin",
154+
"uses": "actions-rs/[email protected]",
155+
"with": { "version": "0.18.2", "args": "--all" },
156+
},
157+
{
158+
"name": "Upload to codecov.io",
159+
"uses": "codecov/codecov-action@v3",
160+
},
161+
{
162+
"name": "Archive code coverage results",
163+
"uses": "actions/upload-artifact@v3",
164+
"with":
165+
{ "name": "code-coverage-report", "path": "cobertura.xml" },
166+
},
167+
],
123168
},
124-
{
125-
"run": "cd test && cargo run",
126-
"name": "Run the test project",
127-
"env": {
128-
"RUSTFLAGS": "-D warnings"
129-
}
130-
}
131-
]
132169
},
133-
"lints": {
134-
"name": "Lints",
135-
"runs-on": "ubuntu-latest",
136-
"steps": [
137-
{
138-
"uses": "actions/checkout@v4",
139-
"name": "Checkout"
140-
},
141-
{
142-
"uses": "actions-rs/toolchain@v1",
143-
"with": {
144-
"profile": "minimal",
145-
"toolchain": "stable",
146-
"override": true,
147-
"components": "rustfmt, clippy"
148-
},
149-
"name": "Install Rust stable"
150-
},
151-
{
152-
"uses": "actions-rs/cargo@v1",
153-
"with": {
154-
"command": "fmt",
155-
"args": "--all -- --check"
156-
},
157-
"name": "Run `cargo fmt`"
158-
},
159-
{
160-
"uses": "actions-rs/cargo@v1",
161-
"with": {
162-
"command": "clippy",
163-
"args": "--all-features -- -D warnings"
164-
},
165-
"name": "Run `cargo clippy`"
166-
}
167-
]
168-
},
169-
"coverage": {
170-
"name": "Code Coverage",
171-
"runs-on": "ubuntu-latest",
172-
"steps": [
173-
{
174-
"uses": "actions/checkout@v4",
175-
"name": "Checkout"
176-
},
177-
{
178-
"uses": "actions-rs/toolchain@v1",
179-
"with": {
180-
"profile": "minimal",
181-
"toolchain": "nightly",
182-
"override": true
183-
},
184-
"name": "Install Rust nightly"
185-
},
186-
{
187-
"name": "Run cargo-tarpaulin",
188-
"uses": "actions-rs/[email protected]",
189-
"with": {
190-
"version": "0.18.2",
191-
"args": "--all"
192-
}
193-
},
194-
{
195-
"name": "Upload to codecov.io",
196-
"uses": "codecov/codecov-action@v3"
197-
},
198-
{
199-
"name": "Archive code coverage results",
200-
"uses": "actions/upload-artifact@v3",
201-
"with": {
202-
"name": "code-coverage-report",
203-
"path": "cobertura.xml"
204-
}
205-
}
206-
]
207-
}
208-
}
209170
}

0 commit comments

Comments
 (0)