forked from flutter-tizen/flutter-tizen
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 972 Bytes
/
analyze.yml
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
name: Analyze
on: [push, pull_request]
jobs:
dart:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Fetch Flutter SDK
run: |
git clone --depth=1 https://github.com/flutter/flutter.git
cd flutter
git fetch --depth=1 https://github.com/flutter/flutter.git $(cat ../bin/internal/flutter.version)
git checkout FETCH_HEAD
- name: Install pub dependencies
run: flutter/bin/flutter pub get
- name: Verify formatting
run: flutter/bin/dart format --output=none --set-exit-if-changed lib test packages
- name: Analyze project source
run: flutter/bin/dart analyze --fatal-infos lib test
csharp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
- name: Verify formatting
run: dotnet format --verify-no-changes embedding/csharp