Skip to content

Commit

Permalink
Unify workflow for both main and prs
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonfournier committed Jul 18, 2024
1 parent 1482bd1 commit d03f351
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 19 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build

on:
pull_request:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout code
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
cache: gradle
- name: Build and test
run: ./gradlew build
# TODO configure jacocoTestReport and coverallsJacoco
#- name: Run jacocoTestReport
# if: github.ref == 'refs/heads/main'
# env:
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
# run: ./gradlew jacocoTestReport coverallsJacoco
19 changes: 0 additions & 19 deletions .github/workflows/pr.yaml

This file was deleted.

0 comments on commit d03f351

Please sign in to comment.