-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ffe4e6
commit 2fd4daa
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Push/PR Checks | ||
|
||
on: | ||
push: | ||
branches: [ "main", "feat/7-github-actions" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
pr_check: | ||
name: PR Check Build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo (self) | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install flutter | ||
uses: flutter-actions/setup-flutter@v4 | ||
with: | ||
version: '3.10.0' | ||
|
||
- name: Install top-level dependencies | ||
run: dart pub get | ||
|
||
- name: Install melos | ||
run: dart pub global activate melos | ||
|
||
- name: Run melos | ||
run: melos bs && melos run get | ||
|
||
- name: Verify formatting of clerk_auth | ||
run: dart format --output=none --set-exit-if-changed . | ||
working-directory: packages/clerk_auth | ||
|
||
- name: Verify formatting of clerk_flutter | ||
run: dart format --output=none --set-exit-if-changed . | ||
working-directory: packages/clerk_flutter | ||
|
||
- name: Analyze clerk_auth | ||
run: dart analyze | ||
working-directory: packages/clerk_auth | ||
|
||
- name: Analyze clerk_flutter | ||
run: flutter analyze | ||
working-directory: packages/clerk_flutter | ||
|
||
- name: Run tests in clerk_auth | ||
run: dart test | ||
working-directory: packages/clerk_auth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Publish Packages | ||
|
||
jobs: | ||
publish_clerk_auth: | ||
name: Publish clerk_auth package | ||
uses: dart-lang/setup-dart/.github/workflows/publish.yml@main | ||
with: | ||
working-directory: packages/clerk_auth | ||
publish_clerk_flutter: | ||
name: Publish clerk_flutter package | ||
needs: [publish_clerk_auth] | ||
uses: dart-lang/setup-dart/.github/workflows/publish.yml@main | ||
with: | ||
working-directory: packages/clerk_flutter |