-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
refactor: heavily refactors the database schema and bot commands chore: update nitrite version from 3.x to 4.x feat(gh-123): prepare for leaderboards docs: update documentation fix: better error handling fix: improve error messages for ServerQueryClient fix: native hints for bot companion chore: add debug log at the start of the update loop fix: build native image with march=compatibility to support older cpus
- Loading branch information
Showing
98 changed files
with
3,957 additions
and
1,949 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,23 +13,14 @@ concurrency: | |
group: ci-main | ||
|
||
permissions: | ||
# used by semantic release | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
# used to publish the docker image | ||
packages: write | ||
# used by trivy | ||
security-events: write | ||
contents: read | ||
|
||
jobs: | ||
verify: | ||
name: Verify | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
|
@@ -52,22 +43,23 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
|
||
- uses: graalvm/setup-graalvm@v1.0.12 | ||
- uses: graalvm/setup-graalvm@v1.2.1 | ||
with: | ||
java-version: '17' | ||
# distribution: 'graalvm' | ||
version: '22.3.2' | ||
components: 'native-image' | ||
java-version: '21' | ||
distribution: 'graalvm-community' | ||
|
||
- name: Run tests | ||
run: mvn -B -ntp -PnativeTest verify | ||
|
||
release: | ||
name: Build and Release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# required by semantic release | ||
contents: write | ||
# required to publish the docker image | ||
packages: write | ||
needs: | ||
- verify | ||
- verify-native | ||
|
@@ -91,19 +83,3 @@ jobs: | |
@semantic-release/exec | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Get Image Name | ||
id: get-image-name | ||
run: echo "image-name=$(mvn help:evaluate -Dexpression=image.name -q -DforceStdout)" >> $GITHUB_OUTPUT | ||
|
||
- name: Scan Docker Image for Vulnerabilities | ||
uses: aquasecurity/[email protected] | ||
with: | ||
image-ref: ${{ steps.get-image-name.outputs.image-name }} | ||
format: sarif | ||
output: trivy-results.sarif | ||
|
||
- name: Upload Trivy Results to GitHub Security Tab | ||
uses: github/codeql-action/upload-sarif@v3 | ||
with: | ||
sarif_file: trivy-results.sarif |
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 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
Binary file not shown.
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 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 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
Oops, something went wrong.