-
Notifications
You must be signed in to change notification settings - Fork 24
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
Showing
5 changed files
with
81 additions
and
101 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,23 @@ | ||
name: Prepare | ||
description: Prepare CI environment | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: "3.x" | ||
channel: "stable" | ||
- name: Download sqlite3.wasm | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: sqlite3-wasm | ||
path: packages/sqlite3_wasm_build/dist/ | ||
- name: Install Melos | ||
shell: sh | ||
run: flutter pub global activate melos | ||
- name: Install dependencies | ||
shell: sh | ||
run: melos prepare |
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,57 @@ | ||
name: Check packages and demos | ||
|
||
concurrency: | ||
group: packages-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
|
||
jobs: | ||
setup: | ||
uses: ./.github/workflows/prepare_wasm.yml | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
needs: [setup] | ||
steps: | ||
- uses: ./.github/actions/prepare | ||
- name: Check formatting | ||
run: melos format:check:packages | ||
- name: Lint | ||
run: melos analyze:packages | ||
- name: Publish dry-run | ||
run: melos publish --dry-run --yes | ||
|
||
pana: | ||
runs-on: ubuntu-latest | ||
needs: [setup] | ||
steps: | ||
- uses: ./.github/actions/prepare | ||
- name: Check pana score | ||
run: | | ||
flutter pub global activate pana | ||
melos analyze:packages:pana --no-select | ||
test: | ||
runs-on: ubuntu-latest | ||
needs: [setup] | ||
steps: | ||
- uses: ./.github/actions/prepare | ||
- name: Run flutter tests | ||
run: melos test | ||
- name: Run dart tests | ||
run: melos test:web | ||
|
||
check_demos: | ||
runs-on: ubuntu-latest | ||
needs: [setup] | ||
steps: | ||
- uses: ./.github/actions/prepare | ||
- name: Check formatting | ||
run: melos format:check:demos | ||
- name: Lint | ||
run: | | ||
./.github/workflows/scripts/copy-config.sh | ||
melos analyze:demos |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
.github/workflows/test_wasm.yml → .github/workflows/prepare_wasm.yml
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
name: Build SQLite3 WASM | ||
|
||
on: | ||
push: | ||
branches: ["**"] | ||
workflow_call: | ||
|
||
jobs: | ||
compile_sqlite3_wasm: | ||
|