mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 06:52:02 -08:00
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- github-actions
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
env:
|
|
MAVEN_OPTS: -Xmx3g
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-java@v2
|
|
with:
|
|
java-version: 8
|
|
java-package: jdk+fx
|
|
# https://github.com/actions/setup-java#supported-distributions
|
|
distribution: zulu
|
|
cache: maven
|
|
|
|
# https://docs.travis-ci.com/user/languages/java/#maven-dependency-management
|
|
- run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V # -T 1C
|
|
|
|
# https://docs.travis-ci.com/user/languages/java/#maven-default-script-command
|
|
# tests are interdependent and require a specific order
|
|
# running in parallel causes some tests to fail
|
|
# - run: mvn test -B # -T 1C
|
|
|
|
- env:
|
|
CI_NAME: github
|
|
run: >
|
|
mvn
|
|
clean
|
|
jacoco:prepare-agent
|
|
test
|
|
jacoco:report
|
|
jacoco:report-aggregate
|
|
coveralls:report
|
|
--no-transfer-progress
|
|
--define repoToken=${{ secrets.GITHUB_TOKEN }}
|
|
--define pullRequest=${{ github.event.number }}
|