Skip to content

Commit 8f29400

Browse files
committed
Create rust.yml
1 parent c34ce9e commit 8f29400

File tree

18 files changed

+84
-33
lines changed

18 files changed

+84
-33
lines changed

.github/workflows/rust.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
fmt:
14+
name: Check formatting
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Check formatting
19+
run: cargo fmt --all -- --check
20+
21+
clippy:
22+
name: Lint with Clippy
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Lint with Clippy
27+
run: cargo clippy --all-targets --all-features -- -D warnings
28+
29+
build:
30+
name: Build project
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
- name: Build
35+
run: cargo build --verbose
36+
37+
test:
38+
name: Run tests
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v4
42+
- name: Run tests
43+
run: cargo test --verbose

LICENSE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License (MIT)
2+
3+
Copyright © 2024 JSON Resume
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
2-
mod resume;
1+
mod resume;

src/resume.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
use serde::{Deserialize, Serialize};
22

3-
mod basics;
4-
mod work;
5-
mod volunteer;
6-
mod education;
73
mod award;
4+
mod basics;
85
mod certificate;
9-
mod publication;
10-
mod skill;
11-
mod language;
6+
mod education;
127
mod interest;
13-
mod reference;
8+
mod language;
149
mod project;
10+
mod publication;
11+
mod reference;
12+
mod skill;
13+
mod volunteer;
14+
mod work;
1515

16-
use basics::Basics;
17-
use work::Work;
18-
use volunteer::Volunteer;
19-
use education::Education;
2016
use award::Award;
17+
use basics::Basics;
2118
use certificate::Certificate;
22-
use publication::Publication;
23-
use skill::Skill;
24-
use language::Language;
19+
use education::Education;
2520
use interest::Interest;
26-
use reference::Reference;
21+
use language::Language;
2722
use project::Project;
23+
use publication::Publication;
24+
use reference::Reference;
25+
use skill::Skill;
26+
use volunteer::Volunteer;
27+
use work::Work;
2828

2929
#[derive(Debug, Serialize, Deserialize)]
3030
pub struct Resume {
@@ -40,4 +40,4 @@ pub struct Resume {
4040
pub interests: Vec<Interest>,
4141
pub references: Vec<Reference>,
4242
pub projects: Vec<Project>,
43-
}
43+
}

src/resume/award.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ pub struct Award {
66
pub date: String,
77
pub awarder: String,
88
pub summary: String,
9-
}
9+
}

src/resume/basics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ pub struct Basics {
1717
pub summary: String,
1818
pub location: Location,
1919
pub profiles: Vec<Profile>,
20-
}
20+
}

src/resume/basics/location.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ pub struct Location {
99
#[serde(rename = "countryCode")]
1010
pub country_code: String,
1111
pub region: String,
12-
}
12+
}

src/resume/basics/profile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ pub struct Profile {
55
pub network: String,
66
pub username: String,
77
pub url: String,
8-
}
8+
}

src/resume/certificate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ pub struct Certificate {
66
pub date: String,
77
pub issuer: String,
88
pub url: String,
9-
}
9+
}

src/resume/education.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ pub struct Education {
1313
pub end_date: String,
1414
pub score: String,
1515
pub courses: Vec<String>,
16-
}
16+
}

0 commit comments

Comments
 (0)