-
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (47 loc) · 1.39 KB
/
pana.yaml
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
name: pana
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
on:
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
push:
branches:
- master
paths-ignore:
- 'docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
package_panas:
runs-on: ubuntu-latest
strategy:
matrix:
pkg: [athena_migrate, athena_mysql, athena_postgres, athena_sql, athena_utils]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Activate Melos
run: dart pub global activate melos
- name: Install Dependencies
run: melos bs
- uses: flutterings/dart-package-analyzer@v1
# set an id for the current step
id: analysis
# You can then use this id to retrieve the outputs in the next steps.
# The following step shows how to exit the workflow with an error if the total score in percentage is below 50:
- name: Check scores
env:
# NB: "analysis" is the id set above. Replace it with the one you used if different.
TOTAL: ${{ steps.analysis.outputs.total }}
TOTAL_MAX: ${{ steps.analysis.outputs.total_max }}
run: |
PERCENTAGE=$(( $TOTAL * 100 / $TOTAL_MAX ))
if (( $PERCENTAGE < 50 ))
then
echo Score too low!
exit 1
fi