Skip to content

Commit

Permalink
gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
RenkiBrenki committed Apr 12, 2024
1 parent c8d0391 commit d19314c
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Github actions demo
#GitHhub actions demo
# This is a basic workflow to help you get started with Actions

name: CI
Expand All @@ -23,6 +23,9 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: '11'

- name: Check for test
run: |
Expand All @@ -37,20 +40,5 @@ jobs:

- name: Prepare environment
run: |
if [ -f error.txt ]; then
echo "Found error!"
exit 1
else
sudo apt-get update
sudo apt-get install -y default-jre
sudo apt-get install -y default-jdk
curl -s https://get.sdkman.io | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install kotlin
# Compile Kotlin code if necessary
kotlinc src/main/kotlin/util/BarcodeUtilTest.kt -include-runtime -d BarcodeUtilTest.jar
# Run the tests
kotlin -classpath BarcodeUtilTest.jar org.junit.runner.JUnitCore util.BarcodeUtilTest
fi
./gradlew test --tests util.BarcodeUtilTest

0 comments on commit d19314c

Please sign in to comment.