Adjust folder structure #50
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |