forked from mockito/mockito-testng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
186 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
# | ||
# CI build that assembles artifacts and runs tests. | ||
# If validation is successful this workflow releases from the main dev branch. | ||
# | ||
# - skipping CI: add [skip ci] to the commit message | ||
# - skipping release: add [skip release] to the commit message | ||
# | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags-ignore: | ||
- v* # release tags are automatically generated after a successful CI build, no need to run CI against them | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
|
||
# | ||
# SINGLE-JOB | ||
# | ||
verify: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: 1. Check out code | ||
uses: actions/checkout@v2 # https://github.com/actions/checkout | ||
|
||
- name: 2. Set up Java 8 | ||
uses: actions/setup-java@v1 # https://github.com/actions/setup-java | ||
with: | ||
java-version: 8 | ||
|
||
- name: 3. Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@v1 # https://github.com/gradle/wrapper-validation-action | ||
|
||
# need change in build | ||
# | ||
# - name: 4. Build and check reproducibility of artifacts | ||
# run: ./check_reproducibility.sh | ||
|
||
# | ||
# Main build job | ||
# | ||
build: | ||
needs: [verify] | ||
runs-on: ${{ matrix.os }} | ||
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" | ||
|
||
# Definition of the build matrix | ||
strategy: | ||
matrix: | ||
java: [8, 11, 15] | ||
os: [ ubuntu-latest, windows-latest, macOS-latest ] | ||
|
||
steps: | ||
|
||
- name: 1. Check out code | ||
uses: actions/checkout@v2 # https://github.com/actions/checkout | ||
|
||
- name: 2. Set up Java ${{ matrix.java }} | ||
uses: actions/setup-java@v1 # https://github.com/actions/setup-java | ||
with: | ||
java-version: ${{ matrix.java }} | ||
|
||
- name: 3. Build on ${{ matrix.os }} with Java ${{ matrix.java }} | ||
run: ./gradlew build idea | ||
|
||
# | ||
# Release job, only for pushes to the main development branch | ||
# | ||
|
||
# will be activated / implemented after shipkit upgrade | ||
|
||
# release: | ||
# runs-on: ubuntu-latest | ||
# needs: [build, verify] # build job must pass before we can release | ||
# | ||
# if: github.event_name == 'push' | ||
# && github.ref == 'refs/heads/release/3.x' | ||
# && !contains(toJSON(github.event.commits.*.message), '[skip release]') | ||
# | ||
# steps: | ||
# | ||
# - name: Check out code | ||
# uses: actions/checkout@v2 # https://github.com/actions/checkout | ||
# with: | ||
# fetch-depth: '0' # https://github.com/shipkit/shipkit-changelog#fetch-depth-on-ci | ||
# | ||
# - name: Set up Java 8 | ||
# uses: actions/setup-java@v1 | ||
# with: | ||
# java-version: 8 | ||
# | ||
# - name: Build and publish | ||
# run: ./gradlew bintrayUpload githubRelease --scan | ||
# env: | ||
# GH_WRITE_TOKEN: ${{secrets.GH_WRITE_TOKEN}} | ||
# BINTRAY_API_KEY: ${{secrets.BINTRAY_API_KEY}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash -e | ||
|
||
# This script is taken from https://github.com/junit-team/junit5/pull/2217 | ||
|
||
rm -rf checksums/ | ||
mkdir checksums/ | ||
|
||
export SOURCE_DATE_EPOCH=$(date +%s) | ||
|
||
function calculate_checksums() { | ||
OUTPUT=checksums/$1 | ||
|
||
./gradlew --no-build-cache clean assemble | ||
|
||
find ./build -name '*.jar' \ | ||
| grep '/build/libs/' \ | ||
| grep --invert-match 'javadoc' \ | ||
| sort \ | ||
| xargs sha256sum > ${OUTPUT} | ||
} | ||
|
||
|
||
calculate_checksums checksums-1.txt | ||
calculate_checksums checksums-2.txt | ||
|
||
diff checksums/checksums-1.txt checksums/checksums-2.txt |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionSha256Sum=3239b5ed86c3838a37d983ac100573f64c1f3fd8e1eb6c89fa5f9529b5ec091d | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters