Skip to content

Commit

Permalink
Add workflow to check code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
halildurmus committed Jul 24, 2024
1 parent 34ff723 commit 4486bd6
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/code_generation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Check Code Generation

on:
pull_request:
branches: [main]
paths:
- '.github/workflows/code_generation.yml'
- 'packages/generator/bin/**'
- 'packages/generator/lib/**'
- 'packages/generator/analysis_options.yaml'
- 'packages/generator/pubspec.yaml'
push:
branches: [main]
paths:
- '.github/workflows/code_generation.yml'
- 'packages/generator/bin/**'
- 'packages/generator/lib/**'
- 'packages/generator/analysis_options.yaml'
- 'packages/generator/pubspec.yaml'

jobs:
check_generation:
runs-on: windows-2019
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4

- name: 🎯 Setup Dart
uses: dart-lang/setup-dart@v1

- name: 📦 Install Dependencies
run: dart pub get

- name: 📦 Install package:win32 Dependencies
run: dart pub get
working-directory: packages/win32

- name: 📦 Install package:generator Dependencies
run: dart pub get
working-directory: packages/generator

- name: 📦 Install Melos
run: dart pub global activate melos

# - name: ⚙️ Bootstrap Melos
# run: dart pub run melos bootstrap

- name: 🚀 Generate Files
run: dart pub run melos run generate

- name: 📊 Check For Changes
run: git diff --exit-code

0 comments on commit 4486bd6

Please sign in to comment.