Skip to content

Commit

Permalink
🐙 Make Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DasLixou committed Apr 27, 2022
1 parent b28f12d commit 8d1ac20
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ jobs:
distribution: 'zulu'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
- name: Build Stracciatella Classes and TestClasses
run: './gradlew clean classes testClasses'
- name: Run Tests
run: './gradlew test'
- name: Build Artifact with Gradle
run: './gradlew clean shadowJar'
- name: Make Release
uses: "marvinpinto/action-automatic-releases@latest"
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test Stracciatella

on:
push:
branches-ignore:
- "main" # Uses its own tests in build-and-release.yml
paths:
- "src/**"
- "build.gradle"
pull_request:
branches: [ main ]
paths:
- "src/**"
- "build.gradle"

jobs:
test:
name: "Build and Test"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'zulu'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Stracciatella
run: './gradlew clean classes testClasses'
- name: Run Tests
run: './gradlew test'

0 comments on commit 8d1ac20

Please sign in to comment.