Skip to content

Add GitHub Actions for JUnit testing #2

Add GitHub Actions for JUnit testing

Add GitHub Actions for JUnit testing #2

Workflow file for this run

name: Java CI
on:
push:
branches:
- main
- junit-lab
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'

Check failure on line 23 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 23
java-version: '17'
- name: Build with Gradle
run: ./gradlew build
- name: Run JUnit tests
run: ./gradlew test