Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: restructured, cleaned, added pub.dev checks #108

Merged
merged 10 commits into from
Dec 19, 2021
Merged
Show file tree
Hide file tree
Changes from 3 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
3 changes: 2 additions & 1 deletion .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: analysis
on: [push, pull_request]

jobs:
package-analysis:
analyze:
name: Analyze dart code
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
20 changes: 11 additions & 9 deletions .github/workflows/deploy_demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,21 @@ on:
workflow_dispatch:

jobs:
deploy-for-web:
deploy-demo:
name: Deploy demo app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: beta
- run: flutter config --enable-web
- run: flutter pub get
- name: Build for web
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Flutter
uses: subosito/flutter-action@v1

- name: Build demo app for web
working-directory: demo/
run: flutter build web --release
- name: Deploy

- name: Deploy demo app to Github Pages
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pr_title.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v3.4.6
- name: Checking PR title follows Conventional Commit format
uses: amannn/action-semantic-pull-request@v3.4.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}