Added first workflow
This commit is contained in:
39
.gitea/workflows/pull_request.yaml
Normal file
39
.gitea/workflows/pull_request.yaml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
name: Pull Request Pipeline
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set Up Flutter
|
||||||
|
uses: subosito/flutter-action@v2
|
||||||
|
with:
|
||||||
|
flutter-version: 'stable'
|
||||||
|
channel: 'stable'
|
||||||
|
|
||||||
|
- name: Check Formatting
|
||||||
|
run: flutter analyze
|
||||||
|
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: lint
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set Up Flutter
|
||||||
|
uses: subosito/flutter-action@v2
|
||||||
|
with:
|
||||||
|
flutter-version: 'stable'
|
||||||
|
channel: 'stable'
|
||||||
|
|
||||||
|
- name: Get dependencies
|
||||||
|
run: flutter pub get
|
||||||
|
|
||||||
|
- name: Run Tests
|
||||||
|
run: flutter test
|
||||||
Reference in New Issue
Block a user