Update build.yml #49
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
name: Java CI | |
on: [push, pull_request] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ windows-latest, ubuntu-latest, macos-latest ] | |
include: | |
- os: windows-latest | |
dependencies: .\;dependencies/* | |
- os: ubuntu-latest | |
dependencies: .:dependencies/* | |
- os: macos-latest | |
dependencies: .:dependencies/* | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build | |
run: | | |
./gradlew clean build -x test --console=plain | |
cp build/libs/s3m-all.jar ${HOME}/s3m.jar | |
- name: Configure git integration with S3M | |
run: | | |
bash testfiles/shelltests/config/gitconfiguration.sh | |
git config --global user.name "Guilherme Cavalcanti" | |
git config --global user.email "[email protected]" | |
- name: Run tests | |
run: ./gradlew test --console=plain | |
- name: Run integration tests | |
run: | | |
cd testfiles/shelltests | |
javac -cp ${{ matrix.dependencies }} s3mGitIntegrationTests.java | |
java -cp ${{ matrix.dependencies }} org.junit.runner.JUnitCore s3mGitIntegrationTests |