2022-10-25 19:59:56 +00:00
|
|
|
# This workflow uses actions that are not certified by GitHub.
|
|
|
|
# They are provided by a third-party and are governed by
|
|
|
|
# separate terms of service, privacy policy, and support
|
|
|
|
# documentation.
|
|
|
|
|
2023-02-15 14:34:28 +00:00
|
|
|
name: Pull Request check
|
2022-10-25 19:59:56 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-03-26 13:31:46 +00:00
|
|
|
branches: ["main"]
|
2022-10-25 19:59:56 +00:00
|
|
|
pull_request:
|
2023-03-26 13:31:46 +00:00
|
|
|
branches: ["main"]
|
2022-10-25 19:59:56 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-03-26 14:14:13 +00:00
|
|
|
runs-on: macos-11
|
2023-02-15 14:34:28 +00:00
|
|
|
timeout-minutes: 5
|
2022-10-25 19:59:56 +00:00
|
|
|
|
|
|
|
steps:
|
2023-03-26 13:31:46 +00:00
|
|
|
- uses: shaunco/ssh-agent@git-repo-mapping
|
|
|
|
with:
|
|
|
|
ssh-private-key: |
|
|
|
|
${{ secrets.M3_LIGHTMETER_IAP_KEY }}
|
|
|
|
repo-mappings: |
|
2023-03-26 13:44:29 +00:00
|
|
|
github.com/vodemn/m3_lightmeter_iap
|
2023-03-26 13:31:46 +00:00
|
|
|
|
2022-10-25 19:59:56 +00:00
|
|
|
- uses: actions/checkout@v3
|
2023-03-26 13:36:35 +00:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2023-03-26 14:20:35 +00:00
|
|
|
|
2022-10-25 20:03:06 +00:00
|
|
|
- uses: subosito/flutter-action@v2
|
2023-03-26 13:33:18 +00:00
|
|
|
with:
|
|
|
|
channel: "stable"
|
2023-03-26 13:31:46 +00:00
|
|
|
|
2022-12-05 18:56:17 +00:00
|
|
|
- name: Check flutter version
|
|
|
|
run: flutter --version
|
2022-10-25 19:59:56 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: flutter pub get
|
|
|
|
|
2022-12-05 18:56:17 +00:00
|
|
|
- name: Generate intl
|
|
|
|
run: flutter pub run intl_utils:generate
|
2022-10-25 19:59:56 +00:00
|
|
|
|
|
|
|
- name: Analyze project source
|
2023-02-15 14:34:28 +00:00
|
|
|
run: flutter analyze lib --fatal-infos
|
2023-03-25 20:34:24 +00:00
|
|
|
# - name: Run tests
|
|
|
|
# run: flutter test
|