Skip to content

Commit

Permalink
Renamed homeworkStage to homeworkTask for easier understanding
Browse files Browse the repository at this point in the history
  • Loading branch information
arminzavada committed Nov 2, 2024
1 parent 6b94ba6 commit fe6ad64
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ jobs:
run: chmod +x ./gradlew
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Generate code
run: ./gradlew generate
- name: Check phase 1
run: ./gradlew build -PhomeworkStage=1
run: ./gradlew build -PhomeworkTask=1
- name: Check phase 2
run: ./gradlew build -PhomeworkStage=2
run: ./gradlew build -PhomeworkTask=2
- name: Check phase 3
run: ./gradlew build -PhomeworkStage=3
run: ./gradlew build -PhomeworkTask=3
- name: Check phase 4
run: ./gradlew build -PhomeworkStage=4
run: ./gradlew build -PhomeworkTask=4
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ org.gradle.jvmargs=-Xmx2048M
org.gradle.parallel=true

# Change the stage here to execute additional tests!
homeworkStage=0
homeworkTask=0
12 changes: 6 additions & 6 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
rootProject.name = "ASE Homework 3"

val homeworkStage: String by settings
val stage = homeworkStage.toInt()
val homeworkTask: String by settings
val task = homeworkTask.toInt()

if (stage >= 1) {
if (task >= 1) {
include(
"computer-types",
)
}

if (stage >= 2) {
if (task >= 2) {
include(
"software-types",
)
}

if (stage >= 3) {
if (task >= 3) {
include(
"software-repository",
)
}

if (stage >= 4) {
if (task >= 4) {
include(
"deployments",
)
Expand Down

0 comments on commit fe6ad64

Please sign in to comment.