chore: lint secrets causing error

This commit is contained in:
Kingkor Roy Tirtho 2024-12-08 19:53:11 +06:00
parent cdf8deb3bb
commit 58f74acfba
2 changed files with 19 additions and 14 deletions

View File

@ -1,16 +1,16 @@
# The format: # The format:
# SPOTIFY_SECRETS=clintId1:clientSecret1,clientId2:clientSecret2 # SPOTIFY_SECRETS=clintId1:clientSecret1,clientId2:clientSecret2
SPOTIFY_SECRETS= SPOTIFY_SECRETS=$SPOTIFY_SECRETS
# 0 or 1 # 0 or 1
# 0 = disable # 0 = disable
# 1 = enable # 1 = enable
ENABLE_UPDATE_CHECK= ENABLE_UPDATE_CHECK=$ENABLE_UPDATE_CHECK
LASTFM_API_KEY= LASTFM_API_KEY=$LASTFM_API_KEY
LASTFM_API_SECRET= LASTFM_API_SECRET=$LASTFM_API_SECRET
# Release channel. Can be: nightly, stable # Release channel. Can be: nightly, stable
RELEASE_CHANNEL= RELEASE_CHANNEL=$RELEASE_CHANNEL
HIDE_DONATIONS= HIDE_DONATIONS=$HIDE_DONATIONS

View File

@ -17,18 +17,23 @@ jobs:
with: with:
flutter-version: ${{ env.FLUTTER_VERSION }} flutter-version: ${{ env.FLUTTER_VERSION }}
- name: Dummy Envs
run: |
envsubst < .env.example > .env
env:
SPOTIFY_SECRETS: xxx:xxx
ENABLE_UPDATE_CHECK: true
LASTFM_API_KEY: xxx
LASTFM_API_SECRET: xxx
RELEASE_CHANNEL: nightly
HIDE_DONATIONS: false
- name: Configure repo - name: Configure repo
run: | run: |
flutter pub get flutter pub get
echo '${{ secrets.DOTENV_NIGHTLY }}' > .env
dart run build_runner build --delete-conflicting-outputs dart run build_runner build --delete-conflicting-outputs
- name: Lint Dart files - name: Lint Dart files
run: | run: |
dart analyze --no-fatal-warnings dart analyze --no-fatal-warnings
- name: Lint translations & config files
run: |
npm install -g @prantlf/jsonlint
jsonlint -q -D --enforce-double-quotes ./lib/l10n/*.arb
jsonlint -q -D --enforce-double-quotes -T .vscode/*.json