Skip to content

Commit

Permalink
Merge pull request #634 from charlestian23/github-actions-test-suite
Browse files Browse the repository at this point in the history
Run test suite with GitHub Actions
  • Loading branch information
Chase-Grajeda authored Oct 10, 2023
2 parents b603f1a + 4bd1787 commit a52b65d
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Run JUnit Tests

on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev

jobs:
ubuntu-test:
runs-on: ubuntu-latest

steps:
- name: Check Out Code
uses: actions/checkout@v2

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build -x test

- name: Run JUnit Tests on Linux
run: |
./gradlew test
test-macos:
runs-on: macos-latest

steps:
- name: Check Out Code
uses: actions/checkout@v2

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build -x test

- name: Run JUnit Tests on macOS
run: |
./gradlew test
test-windows:
runs-on: windows-latest

steps:
- name: Check Out Code
uses: actions/checkout@v2

- name: Set up JDK and Gradle on Windows
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'adopt'

- name: Run JUnit Tests on Windows
run: |
.\gradlew.bat test

0 comments on commit a52b65d

Please sign in to comment.