Skip to content

Commit

Permalink
Build and Test YOJ using GitHub Actions on any PR and merge to main
Browse files Browse the repository at this point in the history
  • Loading branch information
nvamelichev committed Dec 20, 2023
1 parent ebd2222 commit 8b27f0d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build YOJ (unit tests only)

on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, reopened, edited, ready_for_review]

jobs:
build:
name: Build YOJ (unit tests only)
runs-on: ubuntu-latest

env:
MAVEN_ARGS: --batch-mode --update-snapshots -Dstyle.color=always

steps:
- uses: actions/checkout@v3

- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'

- name: Build with Maven
run: mvn $MAVEN_ARGS verify

- name: Publish Test Report
if: ${{ always() }}
uses: scacap/action-surefire-report@v1

0 comments on commit 8b27f0d

Please sign in to comment.