Skip to content

Commit bdc055f

Browse files
Create blank.yml
1 parent 1bdff89 commit bdc055f

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/blank.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Java CI
2+
3+
on:
4+
push:
5+
branches: [ "task-3-inheritance-(05.03.25)" ]
6+
pull_request:
7+
branches: [ "task-3-inheritance-(05.03.25)" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout репозиторію
16+
uses: actions/checkout@v2
17+
18+
- name: Set up JDK 11
19+
uses: actions/setup-java@v2
20+
with:
21+
java-version: '11'
22+
distribution: 'temurin'
23+
24+
- name: Compile Java Code
25+
run: |
26+
mkdir -p out
27+
javac -d out $(find . -name "*.java")
28+
29+
- name: Run Tests
30+
id: run_tests
31+
run: |
32+
java -cp out main
33+
continue-on-error: true
34+
35+
- name: Calculate Grade
36+
id: grade
37+
if: always()
38+
env:
39+
TESTS_STATUS: ${{ steps.run_tests.outcome }}
40+
run: |
41+
chmod +x .github/workflows/grade.sh
42+
.github/workflows/grade.sh

0 commit comments

Comments
 (0)