Skip to content

Clean up CI workflows and fix server startup #31

Clean up CI workflows and fix server startup

Clean up CI workflows and fix server startup #31

Workflow file for this run

name: Test
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
permissions:
contents: read
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test-server:
name: Test Server
runs-on: ubuntu-latest
timeout-minutes: 20
env:

Check failure on line 21 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 21
CI: true
ADMIN_SECRET: "a".repeat(64)
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24.3.0
- name: Match npm version (11.4.2) & verify
run: |
npm install -g npm@11.4.2
node -v
npm -v
- name: Install, lint, test, build
working-directory: server
run: |
npm ci
npm run lint
npm test
npm run build
- name: Upload server build
uses: actions/upload-artifact@v4
with:
name: server-build
path: server/dist
test-mobile:
name: Test Mobile App
runs-on: ubuntu-latest
timeout-minutes: 40
env:
CI: true
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: 3.35.3
channel: stable
cache: true
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: gradle
- uses: android-actions/setup-android@v3
- run: flutter --version
- name: Setup environment file
run: cp server/.env.example mobile/.env
- name: Test mobile app
working-directory: mobile
run: |
flutter pub get
flutter analyze
flutter test
flutter build apk --release
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: app-release-apk
path: mobile/build/app/outputs/flutter-apk/app-release.apk