Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on:
pull_request:
branches:
- main

jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Flutter
uses: subosito/flutter-action@v2

- name: Install dependencies
working-directory: manylines_editor
run: flutter pub get

- name: Run tests
working-directory: manylines_editor
run: flutter test
48 changes: 48 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy Dart docs to GitHub Pages

on:
pull_request:
branches:
- main
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write


jobs:
build:
name: Build documentation
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Flutter
uses: subosito/flutter-action@v2

- name: Install dependencies
working-directory: manylines_editor
run: flutter pub get

- name: Generate docs
working-directory: manylines_editor
run: dart doc .

- name: Upload Pages artifact from Dart docs
uses: actions/upload-pages-artifact@v3
with:
path: manylines_editor/doc/api
deploy:
name: Deploy to GitHub Pages
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Loading