name: "Test" on: pull_request: branches: - main jobs: Lint: runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@v3 - name: Install pnpm uses: pnpm/action-setup@v2 with: version: 8 run_install: false - name: Install Node uses: actions/setup-node@v3 with: node-version: 20 cache: "pnpm" - name: Install Dependencies run: pnpm install --no-frozen-lockfile - name: Run Lint run: npm run lint Test: runs-on: macos-latest needs: Lint strategy: fail-fast: false matrix: config: - targetBrowser: android_emulator_5 # - targetBrowser: android_emulator_5_1 # - targetBrowser: android_emulator_6 - targetBrowser: android_emulator_7 # - targetBrowser: android_emulator_7_1 # - targetBrowser: android_emulator_8 # - targetBrowser: android_emulator_8_1 - targetBrowser: android_emulator_9 # - targetBrowser: android_emulator_10 - targetBrowser: android_emulator_11 # - targetBrowser: android_emulator_12 # - targetBrowser: android_emulator_12_1 - targetBrowser: android_emulator_13 - targetBrowser: android_emulator_14 concurrency: group: ${{ github.head_ref }}-${{ matrix.config.targetBrowser }} cancel-in-progress: true steps: - name: Checkout Code uses: actions/checkout@v3 - name: Install pnpm uses: pnpm/action-setup@v2 with: version: 8 run_install: false - name: Install Node uses: actions/setup-node@v3 with: node-version: 20 cache: "pnpm" - name: Install Dependencies run: pnpm install --no-frozen-lockfile - name: Setup JDK 17 uses: actions/setup-java@v3 with: java-version: 17 distribution: temurin - name: Setup Android SDK uses: amyu/setup-android@v3.2 with: cache-key: sdk-${{ matrix.config.targetBrowser }} - name: Install emulator run: | sdkmanager emulator - name: Run tests env: TARGET_BROWSER: ${{ matrix.config.targetBrowser }} run: npm run test