-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (50 loc) · 1.95 KB
/
pull-request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: CI - Pull Request
on:
pull_request:
# pull_request_target: # Uncomment this line if you are using pull_request_target
# Pull Request Runs on the same branch will be cancelled
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
code-quality:
runs-on: ubuntu-latest
steps:
# Checkout the repo
- uses: actions/checkout@v4
with:
fetch-depth: 0
# Use the flutter-action to set up flutter, and cache dependencies
- uses: subosito/flutter-action@v2
with:
cache: true
# If you have generated code, you may want to run build_runner to generate the code
# - run: dart run build_runner build --delete-conflicting-outputs
# Uses the flutter-code-quality action to run code quality checks
# This will return a status check to the pull request
- uses: ZebraDevs/flutter-code-quality@fix/deleteLcov
with:
token: ${{secrets.GITHUB_TOKEN}}
# You may want to add more jobs here, such as building and testing your code.
# The following commented job is an example of deploying a preview version of your app
# deploy-preview:
# name: Deploy preview version of the storybook on firebase
# needs: code-quality
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# repository: ${{github.event.pull_request.head.repo.full_name}}
# ref: ${{ github.head_ref }}
# - uses: subosito/flutter-action@v2
# with:
# cache: true
# - name: Setup flutter
# run: flutter pub get
# - name: Build example app
# run: flutter build web
# - uses: FirebaseExtended/action-hosting-deploy@v0
# with:
# repoToken: "${{ secrets.GITHUB_TOKEN }}"
# firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZETA_DS }}"
# channelId: "pr-${{ github.event.number }}-${{ github.event.pull_request.head.ref }}"