Skip to content

Commit f3edd04

Browse files
committed
Download wasm assets
1 parent 2ab89ac commit f3edd04

File tree

5 files changed

+81
-101
lines changed

5 files changed

+81
-101
lines changed

.github/actions/prepare/action.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Prepare
2+
description: Prepare CI environment
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- uses: actions/checkout@v4
8+
- name: Install Flutter
9+
uses: subosito/flutter-action@v2
10+
with:
11+
flutter-version: "3.x"
12+
channel: "stable"
13+
- name: Download sqlite3.wasm
14+
uses: actions/download-artifact@v4
15+
with:
16+
name: sqlite3-wasm
17+
path: packages/sqlite3_wasm_build/dist/
18+
- name: Install Melos
19+
shell: sh
20+
run: flutter pub global activate melos
21+
- name: Install dependencies
22+
shell: sh
23+
run: melos prepare

.github/workflows/check.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Check packages and demos
2+
3+
concurrency:
4+
group: packages-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
5+
6+
on:
7+
push:
8+
branches:
9+
- "**"
10+
11+
jobs:
12+
setup:
13+
uses: ./.github/workflows/prepare_wasm.yml
14+
15+
build:
16+
runs-on: ubuntu-latest
17+
needs: [setup]
18+
steps:
19+
- uses: ./.github/actions/prepare
20+
- name: Check formatting
21+
run: melos format:check:packages
22+
- name: Lint
23+
run: melos analyze:packages
24+
- name: Publish dry-run
25+
run: melos publish --dry-run --yes
26+
27+
pana:
28+
runs-on: ubuntu-latest
29+
needs: [setup]
30+
steps:
31+
- uses: ./.github/actions/prepare
32+
- name: Check pana score
33+
run: |
34+
flutter pub global activate pana
35+
melos analyze:packages:pana --no-select
36+
37+
test:
38+
runs-on: ubuntu-latest
39+
needs: [setup]
40+
steps:
41+
- uses: ./.github/actions/prepare
42+
- name: Run flutter tests
43+
run: melos test
44+
- name: Run dart tests
45+
run: melos test:web
46+
47+
check_demos:
48+
runs-on: ubuntu-latest
49+
needs: [setup]
50+
steps:
51+
- uses: ./.github/actions/prepare
52+
- name: Check formatting
53+
run: melos format:check:demos
54+
- name: Lint
55+
run: |
56+
./.github/workflows/scripts/copy-config.sh
57+
melos analyze:demos

.github/workflows/demos.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/packages.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: Build SQLite3 WASM
22

33
on:
4-
push:
5-
branches: ["**"]
4+
workflow_call:
65

76
jobs:
87
compile_sqlite3_wasm:

0 commit comments

Comments
 (0)