@@ -0,0 +1,24 @@
|
||||
name: CI Workflow
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
jobs:
|
||||
# Build the project
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Pull the project"
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: "Setup JDK + Gradle cache"
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: "21"
|
||||
cache: "gradle"
|
||||
|
||||
- name: "Make gradlew executable"
|
||||
run: chmod +x ./gradlew
|
||||
|
||||
- name: "Run test"
|
||||
run: ./gradlew check build --continue
|
||||
@@ -1,6 +0,0 @@
|
||||
package com.ericampire.demo.dsa
|
||||
|
||||
fun main() {
|
||||
val ar = ByteArray(6)
|
||||
ar.forEach { println(it) }
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.ericampire.demo.dsa.datastructure.array
|
||||
|
||||
class StaticArray(val size: Int) {
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.ericampire.demo.dsa.datastructure.array
|
||||
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
|
||||
class StaticArrayTest {
|
||||
|
||||
@Test
|
||||
fun test() {
|
||||
assertEquals(4, 2 + 2)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user