[MAJC-107] Adding build validation workflow #5
Workflow file for this run
This file contains hidden or 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: validate_build | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| validate_build: | |
| name: validate_build | |
| runs-on: | |
| - ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 20.18.0 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.18.0' | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build and verify MAJC dist files | |
| run: npm run build | |
| - name: Install React Example dependencies | |
| run: npm ci | |
| working-directory: ./examples/react | |
| - name: Build and verify Example React App | |
| run: npm run build | |
| working-directory: ./examples/react |