Skip to content

@devops Generate

@devops Generate #4

name: Build and Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'adopt'
- name: Build with Maven
run: mvn clean install
- name: Run tests
run: mvn test
- name: Lint Java source code
run: mvn spotless:check || true
- name: Upload test results
uses: actions/upload-artifact@v2
with:
name: test-results
path: target/surefire-reports/