Skip to content

Commit

Permalink
Update dart.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Polabiel authored Oct 9, 2024
1 parent 919e95d commit 5eb4944
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Flutter
name: Flutter CI

on:
push:
Expand All @@ -25,13 +25,21 @@ jobs:
path: ~/.pub-cache
key: ${{ runner.os }}-flutter-${{ hashFiles('**/pubspec.yaml') }}

# Instalar o dotenv para carregar as variáveis do .env
- name: Install dotenv package
run: flutter pub add flutter_dotenv

# Install dependencies
- name: Install dependencies
run: flutter pub get

# Verify formatting
# - name: Verify formatting
# run: flutter format --set-exit-if-changed .
# Configurar variáveis de ambiente com dotenv
- name: Setup environment variables
run: echo "BASE_URL=${{ secrets.BASE_URL }}" > .env

# Verificar formatação
- name: Verify formatting
run: flutter format --set-exit-if-changed .

# Analyze project source
- name: Analyze project source
Expand Down

0 comments on commit 5eb4944

Please sign in to comment.