Skip to content

Commit 7d7ab97

Browse files
Fixed resources
1 parent 9e82c8d commit 7d7ab97

File tree

21 files changed

+182
-535
lines changed

21 files changed

+182
-535
lines changed

.github/workflows/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Automatic tests
2+
3+
After completing all the steps in the project, automatic tests will become available to you. Tests are run on each commit - once all tasks in the Hexlet interface are completed, make a commit, and the tests will run automatically.
4+
5+
The hexlet-check.yml file is responsible for running these tests - do not delete this file, edit it, or rename the repository.

.github/workflows/ci.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,45 @@
11
name: Java CI
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
pull_request:
66

77
jobs:
88
build:
99
runs-on: ubuntu-latest
1010

1111
steps:
1212
- uses: actions/checkout@v4
13+
1314
- uses: actions/setup-java@v4
1415
with:
1516
java-version: '21'
1617
distribution: 'temurin'
17-
- name: Build with Gradle
18-
uses: gradle/actions/setup-gradle@v4
18+
19+
- uses: gradle/actions/setup-gradle@v4
1920
with:
2021
gradle-version: "8.13"
21-
- run: ./gradlew checkstyleMain
22-
- run: ./gradlew test
23-
- run: ./gradlew jacocoTestReport
22+
23+
- name: Check code style
24+
run: ./gradlew checkstyleMain
25+
working-directory: app
26+
27+
- name: Run tests
28+
run: ./gradlew test
29+
working-directory: app
30+
31+
- name: Jacoco report
32+
run: ./gradlew jacocoTestReport
33+
working-directory: app
2434

2535
- name: Upload JaCoCo reports
2636
uses: actions/upload-artifact@v4
2737
with:
28-
name: jacoco-reports
29-
path: |
30-
app/build/reports/jacoco/test
38+
name: jacoco-reports
39+
path: app/build/reports/jacoco/test
3140

3241
- name: Upload JaCoCo coverage to Qlty Cloud
3342
uses: qltysh/qlty-action/coverage@v1
3443
with:
35-
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
36-
files: app/build/reports/jacoco/test/jacocoTestReport.xml
44+
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
45+
files: app/build/reports/jacoco/test/jacocoTestReport.xml

.github/workflows/hexlet-check.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
##########################################################################
2+
# DO NOT DELETE OR EDIT THIS FILE #
3+
# This file is automatically generated and used to run tests #
4+
##########################################################################
5+
6+
name: hexlet-check
7+
8+
on:
9+
push:
10+
branches:
11+
- '**'
12+
tags:
13+
- '**'
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Hexlet project check
22+
uses: hexlet/project-action@release
23+
with:
24+
hexlet-id: ${{ secrets.HEXLET_ID }}

.idea/.gitignore

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

.idea/checkstyle-idea.xml

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

.idea/compiler.xml

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

.idea/git_toolbox_blame.xml

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

.idea/gradle.xml

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

.idea/jarRepositories.xml

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

.idea/misc.xml

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

0 commit comments

Comments
 (0)