From 73dbbed409a86328144f2c75f460426e7baa6ae1 Mon Sep 17 00:00:00 2001 From: Roman / Nea Date: Thu, 2 Jun 2022 09:59:07 +0200 Subject: Loomerings (#152) --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3b6d0cbd..630d8288 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,14 +34,14 @@ jobs: ./.github/workflows/send_webhook_update.sh env: STATUS: WORKING - - name: Set up JDK 8 + - name: Set up JDK 17 uses: actions/setup-java@v2 with: - java-version: 8 - distribution: zulu + java-version: 17 + distribution: temurin cache: gradle - name: Build with Gradle - run: chmod +x ./gradlew && ./gradlew setupCIWorkspace build --no-daemon + run: chmod +x ./gradlew && ./gradlew clean test remapJar --no-daemon - uses: actions/upload-artifact@v2 with: path: build/libs/*-dep.jar -- cgit From 50dc2122462642a0c3a00b3a3ae6389825dc04df Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 9 Jun 2022 18:04:22 -0400 Subject: Re-license project as LGPL (#157) * add licence files & a few misc chores * add license notices & run auto formatter --- .github/workflows/build.yml | 6 ++++-- .github/workflows/send_webhook_update.sh | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 630d8288..0440aefb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,14 +6,16 @@ on: - '*' paths-ignore: - 'README.md' - - 'LICENSE' + - 'LICENSE.md' + - 'LICENSE-GPLv3.md' - '.gitignore' pull_request: branches: - '*' paths-ignore: - 'README.md' - - 'LICENSE' + - 'LICENSE.md' + - 'LICENSE-GPLv3.md' - '.gitignore' workflow_dispatch: jobs: diff --git a/.github/workflows/send_webhook_update.sh b/.github/workflows/send_webhook_update.sh index 56852159..3ec20af3 100755 --- a/.github/workflows/send_webhook_update.sh +++ b/.github/workflows/send_webhook_update.sh @@ -1,4 +1,23 @@ #!/bin/bash +# +# Copyright (C) 2022 NotEnoughUpdates contributors +# +# This file is part of NotEnoughUpdates. +# +# NotEnoughUpdates is free software: you can redistribute it +# and/or modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, either +# version 3 of the License, or (at your option) any later version. +# +# NotEnoughUpdates is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with NotEnoughUpdates. If not, see . +# + set -x COLOR_SUCCESS=8040199 -- cgit From 63c8be57bf124fd5470b759abdf90d4db0c44b5f Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sat, 11 Jun 2022 15:16:43 -0400 Subject: Add more .github files (#162) added `CODE_OF_CONDUCT.md`, `SECURITY.md`, and `SUPPORT.md` moved `CONTRIBUTING.md` to .github updated `README.md` added some of my files to `CODEOWNERS` --- .github/workflows/build.yml | 86 ++++++++++++++++++++++----------------------- 1 file changed, 43 insertions(+), 43 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0440aefb..4d6c2b23 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,20 +3,20 @@ name: Build on: push: branches: - - '*' + - "*" paths-ignore: - - 'README.md' - - 'LICENSE.md' - - 'LICENSE-GPLv3.md' - - '.gitignore' + - "README.md" + - "COPYING" + - "COPYING.LESSER" + - ".gitignore" pull_request: branches: - - '*' + - "*" paths-ignore: - - 'README.md' - - 'LICENSE.md' - - 'LICENSE-GPLv3.md' - - '.gitignore' + - "README.md" + - "COPYING" + - "COPYING.LESSER" + - ".gitignore" workflow_dispatch: jobs: build: @@ -28,36 +28,36 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Send discord notification - id: sendmsg - if: ${{ env.WEBHOOK_URL }} - run: | - ./.github/workflows/send_webhook_update.sh - env: - STATUS: WORKING - - name: Set up JDK 17 - uses: actions/setup-java@v2 - with: - java-version: 17 - distribution: temurin - cache: gradle - - name: Build with Gradle - run: chmod +x ./gradlew && ./gradlew clean test remapJar --no-daemon - - uses: actions/upload-artifact@v2 - with: - path: build/libs/*-dep.jar - - name: Update discord notification - if: ${{ env.WEBHOOK_URL && success() }} - run: | - ./.github/workflows/send_webhook_update.sh - env: - STATUS: SUCCESS - MESSAGE_ID: ${{ steps.sendmsg.outputs.MESSAGE_ID }} - - name: Update discord notification - if: ${{ env.WEBHOOK_URL && failure() }} - run: | - ./.github/workflows/send_webhook_update.sh - env: - STATUS: FAILURE - MESSAGE_ID: ${{ steps.sendmsg.outputs.MESSAGE_ID }} + - uses: actions/checkout@v2 + - name: Send discord notification + id: sendmsg + if: ${{ env.WEBHOOK_URL }} + run: | + ./.github/workflows/send_webhook_update.sh + env: + STATUS: WORKING + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + java-version: 17 + distribution: temurin + cache: gradle + - name: Build with Gradle + run: chmod +x ./gradlew && ./gradlew clean test remapJar --no-daemon + - uses: actions/upload-artifact@v2 + with: + path: build/libs/*-dep.jar + - name: Update discord notification + if: ${{ env.WEBHOOK_URL && success() }} + run: | + ./.github/workflows/send_webhook_update.sh + env: + STATUS: SUCCESS + MESSAGE_ID: ${{ steps.sendmsg.outputs.MESSAGE_ID }} + - name: Update discord notification + if: ${{ env.WEBHOOK_URL && failure() }} + run: | + ./.github/workflows/send_webhook_update.sh + env: + STATUS: FAILURE + MESSAGE_ID: ${{ steps.sendmsg.outputs.MESSAGE_ID }} -- cgit From d36b402fbf7f30757e0169bab81a974ddc7d3e76 Mon Sep 17 00:00:00 2001 From: Roman / Nea Date: Thu, 16 Jun 2022 11:37:11 +0200 Subject: Run infer on every PR (#169) --- .github/workflows/infer.yml | 34 +++++++++++++++++++ .github/workflows/inferbuild.sh | 58 ++++++++++++++++++++++++++++++++ .github/workflows/send_webhook_update.sh | 2 +- 3 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/infer.yml create mode 100755 .github/workflows/inferbuild.sh (limited to '.github/workflows') diff --git a/.github/workflows/infer.yml b/.github/workflows/infer.yml new file mode 100644 index 00000000..f7524223 --- /dev/null +++ b/.github/workflows/infer.yml @@ -0,0 +1,34 @@ +name: Infer + +on: + - pull_request + - workflow_dispatch +jobs: + inferering: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + name: Checkout feature + with: + ref: ${{ github.event.pull_request.head.sha }} + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + java-version: 17 + distribution: temurin + cache: gradle + - name: Setup Infer + uses: srz-zumix/setup-infer@v1 + - name: Run Infer on feature + run: ./.github/workflows/inferbuild.sh feature + - uses: actions/checkout@v2 + name: Checkout base + with: + ref: ${{ github.event.pull_request.base.sha }} + clean: false + - name: Run Infer on base + run: ./.github/workflows/inferbuild.sh base + - name: Generate report + run: ./.github/workflows/inferbuild.sh report + diff --git a/.github/workflows/inferbuild.sh b/.github/workflows/inferbuild.sh new file mode 100755 index 00000000..b692a1ee --- /dev/null +++ b/.github/workflows/inferbuild.sh @@ -0,0 +1,58 @@ +#!/bin/bash +# Copyright (C) 2022 NotEnoughUpdates contributors +# +# This file is part of NotEnoughUpdates. +# +# NotEnoughUpdates is free software: you can redistribute it +# and/or modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation, either +# version 3 of the License, or (at your option) any later version. +# +# NotEnoughUpdates is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with NotEnoughUpdates. If not, see . +# + +gradlecommand="./gradlew clean test --no-daemon" + +currentcommit=$(git log --pretty=%s -1) +mkdir -p ciwork + +case $1 in +feature) + echo "::group::Gradle build on $currentcommit" + infer capture -- $gradlecommand + echo "::endgroup::" + + echo "::group::Infer analyzering on $currentcommit" + infer analyze + echo "::endgroup::" + + cp infer-out/report.json ciwork/report-feature.json + ;; +base) + echo "::group::Gradle build on $currentcommit" + infer capture --reactive -- $gradlecommand + echo "::endgroup::" + + echo "::group::Infer analyzation on $currentcommit" + infer analyze --reactive + echo "::endgroup::" + ;; +report) + infer reportdiff --report-current ciwork/report-feature.json --report-previous infer-out/report.json + jq -r '.[] | select(.severity == "ERROR") | ("::error file="+.file +",line=" +(.line|tostring)+"::" + .qualifier)' >$GITHUB_STEP_SUMMARY + if [[ $unfixcount != 1 ]]; then + exit 1 + fi + ;; +esac diff --git a/.github/workflows/send_webhook_update.sh b/.github/workflows/send_webhook_update.sh index 3ec20af3..f0eb0051 100755 --- a/.github/workflows/send_webhook_update.sh +++ b/.github/workflows/send_webhook_update.sh @@ -88,7 +88,7 @@ function make_request() { curl -X $1 -H "Content-Type: multipart/form-data" -F "payload_json=$json" "$upload_arg" "$upload_name=@$to_upload" "$WEBHOOK_URL$2?wait=true" } -echo "Should replace message with id: $MESSAGE_ID" +echo "Should replace message with id: <$MESSAGE_ID>" if [ "$MESSAGE_ID" != "" ]; then discord_output=$(make_request PATCH "/messages/$MESSAGE_ID") RESULT=$? -- cgit From 564069bcd4124276212fcb41cf4805833ec0fbc9 Mon Sep 17 00:00:00 2001 From: Roman / Nea Date: Thu, 23 Jun 2022 14:10:48 +0200 Subject: move infer around (#173) --- .github/workflows/infer.yml | 23 +++++++++++++--- .github/workflows/inferbuild.sh | 58 ----------------------------------------- 2 files changed, 19 insertions(+), 62 deletions(-) delete mode 100755 .github/workflows/inferbuild.sh (limited to '.github/workflows') diff --git a/.github/workflows/infer.yml b/.github/workflows/infer.yml index f7524223..365e748b 100644 --- a/.github/workflows/infer.yml +++ b/.github/workflows/infer.yml @@ -21,14 +21,29 @@ jobs: - name: Setup Infer uses: srz-zumix/setup-infer@v1 - name: Run Infer on feature - run: ./.github/workflows/inferbuild.sh feature + run: | + echo On commit $(git log --pretty=%s -1) + mkdir -p ciwork + infer capture -- ./gradlew clean test --no-daemon + infer analyze + cp infer-out/report.json ciwork/report-feature.json - uses: actions/checkout@v2 name: Checkout base with: ref: ${{ github.event.pull_request.base.sha }} clean: false - name: Run Infer on base - run: ./.github/workflows/inferbuild.sh base + run: | + echo On commit $(git log --pretty=%s -1) + infer capture --reactive -- ./gradlew clean test --no-daemon + infer analyze --reactive - name: Generate report - run: ./.github/workflows/inferbuild.sh report - + run: | + infer reportdiff --report-current ciwork/report-feature.json --report-previous infer-out/report.json + jq -r '.[] | select(.severity == "ERROR") | ("::error file="+.file +",line=" +(.line|tostring)+"::" + .qualifier)' >$GITHUB_STEP_SUMMARY + [[ $unfixcount != 0 ]] && exit 1 || echo ok. diff --git a/.github/workflows/inferbuild.sh b/.github/workflows/inferbuild.sh deleted file mode 100755 index b692a1ee..00000000 --- a/.github/workflows/inferbuild.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash -# Copyright (C) 2022 NotEnoughUpdates contributors -# -# This file is part of NotEnoughUpdates. -# -# NotEnoughUpdates is free software: you can redistribute it -# and/or modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, either -# version 3 of the License, or (at your option) any later version. -# -# NotEnoughUpdates is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with NotEnoughUpdates. If not, see . -# - -gradlecommand="./gradlew clean test --no-daemon" - -currentcommit=$(git log --pretty=%s -1) -mkdir -p ciwork - -case $1 in -feature) - echo "::group::Gradle build on $currentcommit" - infer capture -- $gradlecommand - echo "::endgroup::" - - echo "::group::Infer analyzering on $currentcommit" - infer analyze - echo "::endgroup::" - - cp infer-out/report.json ciwork/report-feature.json - ;; -base) - echo "::group::Gradle build on $currentcommit" - infer capture --reactive -- $gradlecommand - echo "::endgroup::" - - echo "::group::Infer analyzation on $currentcommit" - infer analyze --reactive - echo "::endgroup::" - ;; -report) - infer reportdiff --report-current ciwork/report-feature.json --report-previous infer-out/report.json - jq -r '.[] | select(.severity == "ERROR") | ("::error file="+.file +",line=" +(.line|tostring)+"::" + .qualifier)' >$GITHUB_STEP_SUMMARY - if [[ $unfixcount != 1 ]]; then - exit 1 - fi - ;; -esac -- cgit From 0fffb5028d34dcc5a669055a7a507134ca466128 Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Tue, 27 Sep 2022 12:36:40 +1000 Subject: Update build.yml (#312) --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4d6c2b23..639d3965 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,7 @@ on: - "COPYING" - "COPYING.LESSER" - ".gitignore" + - "Update Notes" pull_request: branches: - "*" @@ -17,6 +18,7 @@ on: - "COPYING" - "COPYING.LESSER" - ".gitignore" + - "Update Notes" workflow_dispatch: jobs: build: -- cgit