forked from rrousselGit/riverpod
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 837 Bytes
/
Copy pathcheck_generation.yml
File metadata and controls
36 lines (30 loc) · 837 Bytes
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
name: Check code-generation
on:
pull_request:
paths-ignore:
- "**.md"
push:
branches:
- master
- dev
jobs:
check_generation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.1.0
with:
fetch-depth: 2
- uses: subosito/flutter-action@v2.7.1
with:
channel: master
- name: Add pub cache bin to PATH
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
- name: Add pub cache to PATH
run: echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV
- name: Install dependencies
run: flutter pub get
- run: flutter pub get
working-directory: packages/riverpod_lint_flutter_test
- run: ./scripts/generate.sh
- name: check there are no uncommitted changes
run: git diff --exit-code