Skip to content

Merge branch 'main' into develop #15

Merge branch 'main' into develop

Merge branch 'main' into develop #15

Workflow file for this run

name: Deploy app
on:
push:
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: configure enviroment
uses: actions/checkout@v4
- name: Get Flutter version by FVM
uses: kuhnroyal/flutter-fvm-config-action@v2
id: fvm-config-action
with:
path: '.fvmrc'
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
cache: true
cache-key: 'flutter-:os:-:version:'
cache-path: '${{ runner.tool_cache }}/flutter/:os:-:version:'
- name: get flutter dependencies
run: flutter pub get
- name: Verify formated files
run: dart format . --set-exit-if-changed
- name: code analyze
run: flutter analyze
- name: build web app
run: flutter build web
- name: HTML/CSS/JS Minifier
uses: docker://devatherock/minify-js:2.0.0
with:
directory: 'build/web'
add_suffix: false
- uses: actions/upload-artifact@v4
with:
name: web-app
path: build/web/
retention-days: 1