Fix logout issue (#48) #99
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
name: Flutter Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Run Flutter Tests | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
# Set up Flutter with a specified version | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.19.0' # Specify Flutter version >= 3.19.0 | |
- name: Set environment variables | |
run: | | |
echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" >> .env | |
echo "AMPLIFY_CONFIG=${{ secrets.AMPLIFY_CONFIG }}" >> .env | |
# Run flutter pub get to fetch dependencies | |
- name: Install Dependencies | |
run: flutter pub get | |
# Run flutter tests | |
- name: Run Tests | |
run: flutter test |