From 0ebe52df51c0bb08b5f0f78a5cb08e0c2ccafaac Mon Sep 17 00:00:00 2001 From: Marcel Prestel Date: Sun, 18 Aug 2019 09:23:56 +0000 Subject: [PATCH 1/5] Create action --- .github/workflows/pushtobranch.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pushtobranch.yml diff --git a/.github/workflows/pushtobranch.yml b/.github/workflows/pushtobranch.yml new file mode 100644 index 000000000..34d724a47 --- /dev/null +++ b/.github/workflows/pushtobranch.yml @@ -0,0 +1,30 @@ +name: Java CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Maven + run: mvn -DskipTests package --file pom.xml + + test: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Test with Maven + run: mvn -Dmaven.test.failure.ignore=true test --file pom.xml From e9ac618be25cace19ca6dfbf853c777398ad0862 Mon Sep 17 00:00:00 2001 From: Marcel Prestel Date: Sun, 18 Aug 2019 11:45:13 +0000 Subject: [PATCH 2/5] Create actions --- .github/workflows/ci.yml | 41 +++++++++++++++++++++++++++++++++++++ .github/workflows/stale.yml | 15 ++++++++++++++ sonar-project.properties | 6 ++++++ 3 files changed, 62 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/stale.yml create mode 100644 sonar-project.properties diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..9b0901269 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +name: Continuous Integration + +on: [push] + +jobs: + Build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build + run: mvn -DskipTests package --file pom.xml + + Test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Test + run: mvn test --file pom.xml + + + SonarCloud-Scan: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: SonarCloud Scan + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + run: mvn -DskipTests package --file pom.xml & mvn org.jacoco:jacoco-maven-plugin:prepare-agent install -Dmaven.test.failure.ignore=true & mvn sonar:sonar -Dsonar.junit.reportPaths='target/surefire-reports' -Dsonar.organization=marci4-github -Dsonar.host.url=https://sonarcloud.io --file pom.xml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..9b5cf933b --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,15 @@ +name: "Close stale issues" +on: + schedule: + - cron: "0 * * * *" + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days' + days-before-stale: 21 + days-before-close: 7 diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 000000000..32d17639a --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,6 @@ +sonar.organization=marci4-github +sonar.projectKey=org.java-websocket:Java-WebSocket + +# relative paths to source directories. More details and properties are described +# in https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/ +sonar.sources=src/main/java/org/java_websocket From 4812e5e68ebb9e265df03bb4326941fe71bc848a Mon Sep 17 00:00:00 2001 From: Marcel Prestel Date: Sun, 18 Aug 2019 11:47:59 +0000 Subject: [PATCH 3/5] Delete pushtobranch.yml --- .github/workflows/pushtobranch.yml | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 .github/workflows/pushtobranch.yml diff --git a/.github/workflows/pushtobranch.yml b/.github/workflows/pushtobranch.yml deleted file mode 100644 index 34d724a47..000000000 --- a/.github/workflows/pushtobranch.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Java CI - -on: [push] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Build with Maven - run: mvn -DskipTests package --file pom.xml - - test: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Test with Maven - run: mvn -Dmaven.test.failure.ignore=true test --file pom.xml From 01a42be22872dd42cba7ca2cd7f87bfd190d3cb4 Mon Sep 17 00:00:00 2001 From: Marcel Prestel Date: Mon, 6 Jan 2020 16:11:03 +0000 Subject: [PATCH 4/5] Update ci.yml --- .github/workflows/ci.yml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b0901269..544d474cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,18 +24,3 @@ jobs: java-version: 1.8 - name: Test run: mvn test --file pom.xml - - - SonarCloud-Scan: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: SonarCloud Scan - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: mvn -DskipTests package --file pom.xml & mvn org.jacoco:jacoco-maven-plugin:prepare-agent install -Dmaven.test.failure.ignore=true & mvn sonar:sonar -Dsonar.junit.reportPaths='target/surefire-reports' -Dsonar.organization=marci4-github -Dsonar.host.url=https://sonarcloud.io --file pom.xml From e0a333e5fcb4807b74a59aa8821a76b6b12449e3 Mon Sep 17 00:00:00 2001 From: Marcel Prestel Date: Mon, 6 Jan 2020 16:11:15 +0000 Subject: [PATCH 5/5] Delete stale.yml --- .github/workflows/stale.yml | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 9b5cf933b..000000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: "Close stale issues" -on: - schedule: - - cron: "0 * * * *" - -jobs: - stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days' - days-before-stale: 21 - days-before-close: 7