From 5548a1f58c2bc1fd077435bc9182b9daacb7fd23 Mon Sep 17 00:00:00 2001 From: infnibor <156368035+infnibor@users.noreply.github.com> Date: Tue, 23 Jul 2024 00:36:40 +0200 Subject: [PATCH 1/2] Fixed workflows - Fixed workflow problem --- .github/workflows/biome.yml | 27 +++++++++++++++++++ .github/workflows/eslint.yml | 50 ------------------------------------ 2 files changed, 27 insertions(+), 50 deletions(-) create mode 100644 .github/workflows/biome.yml delete mode 100644 .github/workflows/eslint.yml diff --git a/.github/workflows/biome.yml b/.github/workflows/biome.yml new file mode 100644 index 000000000..e4177aaa2 --- /dev/null +++ b/.github/workflows/biome.yml @@ -0,0 +1,27 @@ +name: BiomeLint + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: '36 1 * * 6' + +jobs: + biome: + name: Run biome linting + runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + actions: read + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install Biome + run: npm install -g @biomejs/biome + + - name: Run Biome Lint + run: biome lint --write src/ diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml deleted file mode 100644 index 7eacf77e4..000000000 --- a/.github/workflows/eslint.yml +++ /dev/null @@ -1,50 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. -# ESLint is a tool for identifying and reporting on patterns -# found in ECMAScript/JavaScript code. -# More details at https://github.com/eslint/eslint -# and https://eslint.org - -name: ESLint - -on: - push: - branches: [ "main" ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ "main" ] - schedule: - - cron: '36 1 * * 6' - -jobs: - eslint: - name: Run eslint scanning - runs-on: ubuntu-latest - permissions: - contents: read - security-events: write - actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install ESLint - run: | - npm install eslint@8.10.0 - npm install @microsoft/eslint-formatter-sarif@2.1.7 - - - name: Run ESLint - run: npx eslint . - --config .eslintrc.js - --ext .js,.jsx,.ts,.tsx - --format @microsoft/eslint-formatter-sarif - --output-file eslint-results.sarif - continue-on-error: true - - - name: Upload analysis results to GitHub - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: eslint-results.sarif - wait-for-processing: true From 10230aff3a96f0bbde2d3082fd75d01ce97d1dbe Mon Sep 17 00:00:00 2001 From: infnibor <156368035+infnibor@users.noreply.github.com> Date: Tue, 23 Jul 2024 01:06:30 +0200 Subject: [PATCH 2/2] Update example.application.yml - Updated plugins and their configuration - Improved compatibility with lyrics-sources documentation --- Lavalink/example.application.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Lavalink/example.application.yml b/Lavalink/example.application.yml index 55ac259f3..a6ad7db19 100644 --- a/Lavalink/example.application.yml +++ b/Lavalink/example.application.yml @@ -34,7 +34,7 @@ plugins: lyrics-sources: spotify: false # Enable Spotify lyrics source deezer: false # Enable Deezer lyrics source - youtube: true # Enable YouTube lyrics source + youtube: false # Enable YouTube lyrics source yandexmusic: false # Enable Yandex Music lyrics source spotify: clientId: "your client id" @@ -43,6 +43,7 @@ plugins: countryCode: "US" # the country code you want to use for filtering the artists top tracks. See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 playlistLoadLimit: 6 # The number of pages at 100 tracks each albumLoadLimit: 6 # The number of pages at 50 tracks each + localFiles: false # Enable local files support with Spotify playlists. Please note `uri` & `iscr` will be `null` & `identifier` will be `"local"` applemusic: countryCode: "US" # the country code you want to use for filtering the artists top tracks and language. See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 mediaAPIToken: "your apple music api token" # apple music api token @@ -88,9 +89,9 @@ lavalink: snapshot: false # set to true if you want to use snapshot builds. - dependency: "com.github.topi314.lavasearch:lavasearch-plugin:1.0.0" snapshot: false # set to true if you want to use snapshot builds. - - dependency: "com.github.topi314.lavasrc:lavasrc-plugin:4.1.1" + - dependency: "com.github.topi314.lavasrc:lavasrc-plugin:4.2.0" snapshot: false # set to true if you want to use snapshot builds. - - dependency: "com.github.topi314.sponsorblock:sponsorblock-plugin:3.0.0" + - dependency: "com.github.topi314.sponsorblock:sponsorblock-plugin:3.0.1" snapshot: false # set to true if you want to use snapshot builds. - dependency: "dev.lavalink.youtube:youtube-plugin:f22d382b7caed0068cbb79eb4cd87ff92e9b3486" snapshot: true # set to true if you want to use snapshot builds.