m3_lightmeter/.github/workflows/ci.yml

39 lines
849 B
YAML
Raw Normal View History

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.
name: Pull Request check
2022-10-25 19:59:56 +00:00
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
2022-10-25 19:59:56 +00:00
steps:
- uses: actions/checkout@v3
2022-10-25 20:03:06 +00:00
- uses: subosito/flutter-action@v2
with:
channel: "stable"
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
run: flutter analyze lib --fatal-infos
2022-10-25 19:59:56 +00:00
2023-03-25 20:34:24 +00:00
# - name: Run tests
# run: flutter test