Skip to content

ci: refactor release workflow #33

ci: refactor release workflow

ci: refactor release workflow #33

Workflow file for this run

name: Build and test
on:
push:
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Get repository
uses: actions/checkout@v4
- name: Configure enviroment
env:
ENV_PROD_BASE64: ${{ secrets.ENV_PROD_BASE64 }}
ENV_DEV_BASE64: ${{ secrets.ENV_DEV_BASE64 }}
run: |
echo $ENV_PROD_BASE64 | base64 -di > .env/prod.json
echo $ENV_DEV_BASE64 | base64 -di > .env/dev.json
- name: Setup Flutter
uses: kuhnroyal/flutter-fvm-config-action/setup@v3
with:
path: '.fvmrc'
- name: Install dependencies
run: sh tool/setup.sh
- name: Verify formated files
run: dart format $(find . -name "*.dart" -not -wholename "**/*.g.dart") --set-exit-if-changed
- name: Analyze code
run: flutter analyze
- name: Test
run: sh tool/unit-test.sh prod