Skip to content

Commit 4077d11

Browse files
committed
Модель предметной области для сайта поиска работы
0 parents  commit 4077d11

18 files changed

Lines changed: 571 additions & 0 deletions

.github/workflows/ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master, main ]
6+
pull_request:
7+
branches: [ master, main ]
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 15
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Set up JDK 17
23+
uses: actions/setup-java@v4
24+
with:
25+
java-version: '17'
26+
distribution: 'temurin'
27+
cache: 'maven'
28+
29+
- name: Build with Maven
30+
run: mvn -B clean compile -Dmaven.test.skip=true -Djava.awt.headless=true
31+
32+
- name: Run tests with coverage
33+
run: mvn -B test jacoco:report -Djava.awt.headless=true || true
34+
35+
- name: Show coverage summary
36+
run: |
37+
if [ -f target/site/jacoco/jacoco.csv ]; then
38+
echo "## Test Coverage Report" >> $GITHUB_STEP_SUMMARY
39+
echo '```' >> $GITHUB_STEP_SUMMARY
40+
awk -F',' 'NR>1 {missed+=$4; covered+=$5} END {total=missed+covered; if(total>0) printf "Line Coverage: %d/%d (%.1f%%)\nMissed: %d lines\n", covered, total, covered*100/total, missed; else print "No coverage data"}' target/site/jacoco/jacoco.csv >> $GITHUB_STEP_SUMMARY
41+
echo '```' >> $GITHUB_STEP_SUMMARY
42+
else
43+
echo "No JaCoCo coverage report found" >> $GITHUB_STEP_SUMMARY
44+
fi
45+
46+
- name: Upload coverage to Codecov
47+
uses: codecov/codecov-action@v4
48+
with:
49+
file: target/site/jacoco/jacoco.xml
50+
fail_ci_if_error: false
51+
env:
52+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
*.class
2+
3+
# Mobile Tools for Java (J2ME)
4+
.mtj.tmp/
5+
6+
# Package Files #
7+
*.jar
8+
*.war
9+
*.ear
10+
11+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
12+
hs_err_pid*
13+
14+
.idea/workspace.xml
15+
.idea/libraries
16+
.idea/scopes
17+
.idea/modules.xml

CLAUDE.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# JobSiteModel — Модель предметной области для сайта поиска работы
2+
3+
## About
4+
5+
Модель предметной области для сайта поиска работы
6+
7+
## Prerequisites
8+
9+
- JDK 8+
10+
- Maven 3.x
11+
12+
## Build & Run
13+
14+
```bash
15+
mvn clean install
16+
mvn test
17+
```
18+
19+
## Development Guidelines
20+
21+
### Code Style
22+
- Follow standard Java conventions
23+
- Keep code clean and well-organized
24+
- Use meaningful variable and method names
25+
26+
### Git Workflow
27+
- Write clear, descriptive commit messages
28+
- One logical change per commit
29+
- Test before committing
30+
31+
### Testing
32+
- Write tests for new functionality
33+
- Run the full test suite before pushing
34+
- Keep tests focused and independent

JobSiteModel.iml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="false">
4+
<output url="file://$MODULE_DIR$/target/classes" />
5+
<output-test url="file://$MODULE_DIR$/target/test-classes" />
6+
<content url="file://$MODULE_DIR$">
7+
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8+
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
9+
<excludeFolder url="file://$MODULE_DIR$/target" />
10+
</content>
11+
<orderEntry type="inheritedJdk" />
12+
<orderEntry type="sourceFolder" forTests="false" />
13+
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.11" level="project" />
14+
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
15+
</component>
16+
</module>

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
JobSiteModel
2+
============
3+
4+
Модель предметной области для сайта поиска работы

pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xmlns="http://maven.apache.org/POM/4.0.0"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>levelp</groupId>
8+
<artifactId>JobSiteModel</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
11+
<properties>
12+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13+
<maven.compiler.source>17</maven.compiler.source>
14+
<maven.compiler.target>17</maven.compiler.target>
15+
</properties>
16+
17+
<dependencies>
18+
<dependency>
19+
<groupId>junit</groupId>
20+
<artifactId>junit</artifactId>
21+
<version>4.11</version>
22+
<scope>test</scope>
23+
</dependency>
24+
</dependencies>
25+
</project>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* Created by d.tyufanov on 08.11.2014.
3+
*/
4+
public class EducationDescription {
5+
int year;
6+
String description;
7+
}

src/main/java/Employment.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* Created by d.tyufanov on 08.11.2014.
3+
*/
4+
public enum Employment {
5+
FULL_TIME,
6+
PART_TIME,
7+
PROJECT_TEMPORARY_WORK,
8+
VOLUNTEERING,
9+
WORK_PLACEMENT
10+
}

src/main/java/Languages.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* Created by d.tyufanov on 08.11.2014.
3+
*/
4+
public enum Languages {
5+
Russian,
6+
English,
7+
German,
8+
Chinees,
9+
Japan,
10+
Spanish,
11+
Italian,
12+
Other
13+
}

src/main/java/Month.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Created by d.tyufanov on 10.11.2014.
3+
*/
4+
public enum Month {
5+
JANUARY,
6+
FEBRUARY,
7+
MARCH,
8+
APRIL,
9+
MAY,
10+
JUNE,
11+
JULY,
12+
AUGUST,
13+
SEPTEMBER,
14+
OCTOBER,
15+
NOVEMBER,
16+
DECEMBER
17+
}

0 commit comments

Comments
 (0)