58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
name: Pull Request Pipeline
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
# Required for Flutter action
|
|
- name: Install jq
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y jq
|
|
|
|
- name: Set up Flutter
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: stable
|
|
flutter-version: 3.38.6
|
|
|
|
- name: Get dependencies
|
|
run: |
|
|
git config --global --add safe.directory /opt/hostedtoolcache/flutter/stable-3.38.6-x64
|
|
flutter pub get
|
|
|
|
- name: Analyze Formatting
|
|
run: flutter analyze lib test
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
# Required for Flutter action
|
|
- name: Install jq
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y jq
|
|
|
|
- name: Set up Flutter
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: stable
|
|
flutter-version: 3.38.6
|
|
|
|
- name: Get dependencies
|
|
run: |
|
|
git config --global --add safe.directory /opt/hostedtoolcache/flutter/stable-3.38.6-x64
|
|
flutter pub get
|
|
|
|
- name: Run tests
|
|
run: flutter test
|