mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 06:52:02 -08:00
55 lines
1.3 KiB
YAML
55 lines
1.3 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
|
|
--define jacoco.skip=false
|
|
--define maven.javadoc.skip=true
|
|
--define skipTests=true
|
|
--batch-mode
|
|
--show-version
|
|
|
|
# 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
|
|
--define jacoco.skip=false
|
|
jacoco:prepare-agent
|
|
test
|
|
jacoco:report
|
|
jacoco:report-aggregate
|
|
coveralls:report
|
|
--no-transfer-progress
|
|
--define repoToken=${{ secrets.GITHUB_TOKEN }}
|
|
--define pullRequest=${{ github.event.number }}
|