chore: Add ci pipeline
CI Workflow / build (push) Successful in 44s

This commit is contained in:
2026-07-29 21:21:35 -04:00
parent 7285ccb1b3
commit 01c4bd02b1
4 changed files with 41 additions and 6 deletions
+24
View File
@@ -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)
}
}