Skip to content

Commit d7daf71

Browse files
fix: replaced old workflows with build-test.yml
1 parent c785ff7 commit d7daf71

File tree

5 files changed

+25
-53
lines changed

5 files changed

+25
-53
lines changed

.github/workflows/build-test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build and Test
2+
3+
on: push
4+
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v4
12+
- name: Setup Java
13+
uses: actions/setup-java@v4
14+
with:
15+
distribution: 'oracle'
16+
version: '21'
17+
- name: Setup Gradle
18+
uses: gradle/actions/setup-gradle@v3
19+
- name: Build code
20+
run: ./gradlew build
21+
- name: Test code
22+
run: ./gradlew test

.github/workflows/publish-javadoc.yml

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

.github/workflows/release-package.yml

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

parkour/src/test/kotlin/dev/cybercoder_nishant/ParserTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package dev.cybercoder_nishant
22

3+
import dev.cybercoder_nishant.parkour.Parser
34
import org.junit.jupiter.api.Assertions.*
45
import org.junit.jupiter.api.Test
56

sample/src/main/kotlin/dev/cybercoder_nishant/Main.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package dev.cybercoder_nishant
22

3+
import dev.cybercoder_nishant.parkour.Parser
4+
35
fun main() {
46
println("Hello World!")
57

0 commit comments

Comments
 (0)