issues/243 - Refactor integration tests to use mocked node. #1
Workflow file for this run
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 workflow will build a Java project with Gradle | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Java SDK test and build | |
on: | |
push: | |
branches: [main, dev] | |
pull_request: | |
branches: [main, dev] | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build and test SDK | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
# Start NCTL and copy assests over | |
- name: Start NCTL and copy assests over | |
run: | | |
cd script && chmod +x docker-run && ./docker-run | |
sleep 30 | |
chmod +x docker-copy-assets && ./docker-copy-assets && cd .. | |
- name: Run the unit tests | |
run: ./gradlew clean build | |
- name: Export project version | |
run: echo "PROJECT_VERSION=$(./gradlew properties -q | grep "version:" | awk '{print $2}')" >> $GITHUB_ENV | |
- name: Generate Javadoc | |
run: ./gradlew javadoc | |
- name: Deploy tests results to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
clean: true | |
folder: build/reports/tests | |
target-folder: docs/latest/junit | |
- name: Deploy jacoco report to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
clean: true | |
folder: build/reports/jacoco | |
target-folder: docs/latest/jacoco | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
clean: true | |
folder: build/docs/javadoc | |
target-folder: docs/latest/javadoc | |
- name: Deploy tests results to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
clean: true | |
folder: build/reports/tests | |
target-folder: docs/${{ env.PROJECT_VERSION }}/junit | |
- name: Deploy jacoco report to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
clean: true | |
folder: build/reports/jacoco | |
target-folder: docs/${{ env.PROJECT_VERSION }}/jacoco | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
clean: true | |
folder: build/docs/javadoc | |
target-folder: docs/${{ env.PROJECT_VERSION }}/javadoc | |