Skip to content

Commit

Permalink
Download wasm assets
Browse files Browse the repository at this point in the history
  • Loading branch information
simolus3 committed Feb 6, 2025
1 parent 9e29345 commit 7db3948
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 101 deletions.
23 changes: 23 additions & 0 deletions .github/actions/prepare/action.yml
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
57 changes: 57 additions & 0 deletions .github/workflows/check.yml
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
31 changes: 0 additions & 31 deletions .github/workflows/demos.yml

This file was deleted.

68 changes: 0 additions & 68 deletions .github/workflows/packages.yml

This file was deleted.

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:
Expand Down

0 comments on commit 7db3948

Please sign in to comment.