Skip to content

feat: Local pub server #598

feat: Local pub server

feat: Local pub server #598

Workflow file for this run

name: aft
on:
push:
branches:
- main
- stable
- next
paths:
- "packages/aft/**/*.dart"
pull_request:
paths:
- "packages/aft/**/*.dart"
schedule:
- cron: "0 0 * * 0" # Every Sunday at 00:00
defaults:
run:
shell: bash
permissions: read-all
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # 3.5.3
with:
submodules: true
# Needed for `git` but only ever used locally.
- name: Git Config
run: |
git config --global user.email "[email protected]"
git config --global user.name "Amplify Flutter"
- name: Setup Dart
uses: dart-lang/setup-dart@cdb51fff2b088939ef86fe041b18e82cb4733522 # main
with:
sdk: stable
- name: Get Packages
working-directory: packages/aft
run: |
# Patch libgit2dart (see https://github.com/dart-lang/pub/issues/3563)
( cd external/libgit2dart; git apply ../libgit2dart.patch )
dart pub upgrade
mkdir linux
cp external/libgit2dart/linux/*.so linux
- name: Save Repo State
working-directory: packages/aft
run: |
dart pub get
dart bin/aft.dart save-repo-state
- name: Run Tests
working-directory: packages/aft
run: dart test