Implemented test workflow
This commit is contained in:
@@ -25,9 +25,9 @@ jobs:
|
||||
# Flutter-Pfad setzen
|
||||
echo "$(pwd)/flutter/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Configure Git Safe Directory (für Projekt)
|
||||
run: |
|
||||
git config --global --add safe.directory "$(pwd)"
|
||||
# - name: Configure Git Safe Directory (für Projekt)
|
||||
# run: |
|
||||
# git config --global --add safe.directory "$(pwd)"
|
||||
|
||||
- name: Get dependencies
|
||||
run: ./flutter/bin/flutter pub get
|
||||
@@ -39,25 +39,27 @@ jobs:
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
needs: lint
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install jq
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y jq
|
||||
apt-get install -y jq git wget unzip xz-utils
|
||||
|
||||
- name: Set Up Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: 'stable'
|
||||
flutter-version: '3.35.0'
|
||||
- name: Install Flutter (lokal)
|
||||
run: |
|
||||
wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.38.2-stable.tar.xz
|
||||
tar xf flutter_linux_3.38.2-stable.tar.xz
|
||||
# Git-Safe-Directory für Flutter-Pfad setzen
|
||||
git config --global --add safe.directory "$(pwd)/flutter"
|
||||
# Flutter-Pfad setzen
|
||||
echo "$(pwd)/flutter/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Get dependencies
|
||||
run: flutter pub get
|
||||
run: ./flutter/bin/flutter pub get
|
||||
|
||||
- name: Run Tests
|
||||
run: flutter test
|
||||
- name: Check Formatting
|
||||
run: ./flutter/bin/flutter test
|
||||
Reference in New Issue
Block a user