diff --git a/.env.example b/.env.example index 6a88cb99..888cbe6b 100644 --- a/.env.example +++ b/.env.example @@ -1,16 +1,16 @@ # The format: # SPOTIFY_SECRETS=clintId1:clientSecret1,clientId2:clientSecret2 -SPOTIFY_SECRETS= +SPOTIFY_SECRETS=$SPOTIFY_SECRETS # 0 or 1 # 0 = disable # 1 = enable -ENABLE_UPDATE_CHECK= +ENABLE_UPDATE_CHECK=$ENABLE_UPDATE_CHECK -LASTFM_API_KEY= -LASTFM_API_SECRET= +LASTFM_API_KEY=$LASTFM_API_KEY +LASTFM_API_SECRET=$LASTFM_API_SECRET # Release channel. Can be: nightly, stable -RELEASE_CHANNEL= +RELEASE_CHANNEL=$RELEASE_CHANNEL -HIDE_DONATIONS= +HIDE_DONATIONS=$HIDE_DONATIONS diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 7ced769e..ec542f21 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -17,18 +17,23 @@ jobs: with: 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 run: | flutter pub get - echo '${{ secrets.DOTENV_NIGHTLY }}' > .env dart run build_runner build --delete-conflicting-outputs - name: Lint Dart files run: | - 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 \ No newline at end of file + dart analyze --no-fatal-warnings \ No newline at end of file