Skip to content

Update ci.yml

Update ci.yml #2

Workflow file for this run

# .github/workflows/ci.yml
name: Java CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v2
with:
distribution: 'adopt' # You can use 'adopt', 'zulu', 'temurin', etc.
java-version: '1.8'
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Run tests
run: mvn test