Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 25 additions & 33 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,39 +11,31 @@ on:
branches: [ main ]

jobs:
build:

linux-build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 11
#cache: 'maven'
- name: Build with Maven
#To see the full stack trace of the errors, re-run Maven with the -e switch.
#Re-run Maven using the -X switch to enable full debug logging.
# -B,--batch-mode Run in non-interactive (batch) mode (disables output color)
# To learn more about options: https://maven.apache.org/ref/3.6.3/maven-embedder/cli.html
run: |
mvn package -B -e -X
mvn site -B -e -X --projects 'jsgenerator-core'
env:
MAVEN_SITE_GITHUB_OAUTH_TOKEN: ${{ secrets.MAVEN_SITE_GITHUB_OAUTH_TOKEN }}

- name: Codecov
uses: codecov/codecov-action@v2
#with:
#token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
#files: ./coverage1.xml,./coverage2.xml # optional
#flags: unittests # optional
#name: codecov-umbrella # optional
#fail_ci_if_error: true # optional (default = false)
#verbose: true # optional (default = false)

- name: Codecov Bash
run: bash <(curl -s https://codecov.io/bash)
- name: git-checkout
uses: actions/checkout@v3

- name: install-java
uses: graalvm/setup-graalvm@v1
with:
version: 'latest'
java-version: '11'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: mvn-clean-package-site-native
run: |
time mvn clean package --debug --errors --batch-mode
time mvn site --debug --errors --batch-mode --projects 'jsgenerator-core'

- name: native-build
run: time ./cli-build.sh

- name: code-coverage
uses: codecov/codecov-action@v3

- name: code-coverage-publish
run: curl --silent --location --show-error --fail-with-body https://codecov.io/bash | bash

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public enum ConstantsTest {
HTML_SRC_DIR_TEST("src/test/resources/htmlFilesInput/"), JS_DEST_DIR_TEST("src/test/resources/jsFilesOutput/");

/**
* @param string
* @param folder
*/
ConstantsTest(String folder) {
// TODO Auto-generated constructor stub
Expand Down
27 changes: 24 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,30 @@
</dependencyManagement>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.2</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.11.0</version>
</plugin>
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.12</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -117,7 +141,6 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
<executions>
<execution>
<goals>
Expand All @@ -141,12 +164,10 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.11.0</version>
</plugin>
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.12</version>
<configuration>
<message>Building site for ${project.name} ${project.version}</message>
<server>github</server>
Expand Down