Skip to content

Adjust folder structure #50

Adjust folder structure

Adjust folder structure #50

Workflow file for this run

name: FeatureManagement-JavaScriptProvider CI
on:
push:
branches:
- main
- preview
- release/*
pull_request:
branches:
- main
- preview
- release/*
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
package-path: ['./sdk/feature-management']
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Run lint
run: npm run lint
working-directory: ${{ matrix.package-path }}
- name: Run build
run: npm run build
working-directory: ${{ matrix.package-path }}
# Only run tests for sdk/package1
- name: Run tests
if: matrix.package-path == 'sdk/feature-management'
run: npm run test
working-directory: ${{ matrix.package-path }}
- name: Run browser tests
if: matrix.package-path == 'sdk/feature-management'
run: npm run test-browser
working-directory: ${{ matrix.package-path }}