Skip to content

chore(deps): update plugin com.android.application to v8.9.2 #2283

chore(deps): update plugin com.android.application to v8.9.2

chore(deps): update plugin com.android.application to v8.9.2 #2283

name: CI - Mobile curriculum test
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- "mobile-app/**"
push:
branches:
- main
schedule:
- cron: "0 0 * * 0"
jobs:
mobile-test:
name: Test curriculum for mobile app
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout freeCodeCamp main repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
repository: freeCodeCamp/freeCodeCamp
path: freeCodeCamp
- name: Checkout mobile repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
path: mobile
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
cache-dependency-path: freeCodeCamp/pnpm-lock.yaml
- name: Setup Flutter 3.27.x
uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 # v2
with:
flutter-version: "3.27.x"
channel: "stable"
cache: true
cache-key: flutter-3.27.x
cache-path: ${{ runner.tool_cache }}/flutter
- name: Set freeCodeCamp Environment Variables
working-directory: freeCodeCamp
run: cp sample.env .env
- name: Install and Build Curriculum
working-directory: freeCodeCamp
run: |
pnpm install
pnpm run create:shared
pnpm run build:curriculum
- name: Install mobile dependencies
working-directory: mobile
run: npm ci
- name: Generate mobile test files
working-directory: mobile/mobile-app
run: |
echo "DEVELOPMENTMODE=true" > .env
echo "HASHNODE_PUBLICATION_ID=$HASHNODE_PUBLICATION_ID" > .env
flutter pub get
flutter test test/widget_test.dart
- name: Install playwright dependencies
working-directory: mobile
run: npx playwright install --with-deps
- name: Install serve
run: npm install -g serve
- name: Run playwright tests
working-directory: mobile
run: npx playwright test --config=e2e/playwright.config.js
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
if: ${{ !cancelled() }}
with:
name: playwright-report-mobile
path: playwright/reporter
retention-days: 30