Skip to content

SDKS 3618- New React Native Project #183

SDKS 3618- New React Native Project

SDKS 3618- New React Native Project #183

Workflow file for this run

name: 'JS Continuous Integration'
on:
- pull_request
jobs:
install:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
node: [18.19.0, 20.11.1]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./javascript
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- uses: actions/cache@v4
id: cache
with:
path: |
node_modules
key: ${{ runner.os }}-npm-${{matrix.node}}-${{ hashFiles('package-lock.json') }}
- run: npm ci
working-directory: ./javascript
if: steps.cache.outputs.cache-hit != 'true'
build-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
node: [18.19.0, 20.11.1]
needs: [install]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./javascript
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- uses: actions/cache@v4
id: cache
with:
path: |
node_modules
key: ${{ runner.os }}-npm-${{matrix.node}}-${{ hashFiles('package-lock.json') }}
- run: npm ci
if: steps.cache.outputs.cache-hit != 'true'
- name: Lint
run: npm run lint
- run: npx playwright install
- name: E2E
run: npm run e2e -ws --if-present
env:
REST_OAUTH_SECRET: ${{ secrets.REST_OAUTH_SECRET }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: Playwright Results - ${{ runner.os }} - ${{ matrix.node }} - ${{ github.run_attempt }}
path: |
./javascript/reactjs-todo/test-results
./javascript/reactjs-todo/playwright-report
./javascript/angular-todo/test-results
./javascript/angular-todo/playwright-report