Skip to content

Commit eaf5982

Browse files
Merge pull request #594 from OneSignal/workflows-for-everyone
Add CI Action
2 parents 810a874 + e689e85 commit eaf5982

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches:
5+
- '**'
6+
paths-ignore:
7+
- '.github/**'
8+
- '.vscode/**'
9+
- 'README.md'
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Setup Flutter
18+
uses: subosito/flutter-action@v2
19+
with:
20+
flutter-version: '2.10.4'
21+
channel: 'stable'
22+
23+
- name: Checkout OneSignal-Flutter-SDK
24+
uses: actions/checkout@v3
25+
26+
- name: Install Dependencies 🔗⛓📦
27+
run: flutter pub get
28+
29+
- name: Static Analysis
30+
run: flutter analyze
31+
32+
- name: Ensure the Dart code is formatted correctly
33+
run: flutter format --set-exit-if-changed --dry-run .
34+
35+
- name: Run Flutter unit tests
36+
run: flutter test

0 commit comments

Comments
 (0)