Merge branch 'featbit:main' into main #50
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: FeatBit UI change validations | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'modules/front-end/**' | |
- '.github/workflows/ui-change-validations.yml' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'modules/front-end/**' | |
- '.github/workflows/ui-change-validations.yml' | |
jobs: | |
build: | |
name : UI Change Validations | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
cache-dependency-path: "modules/front-end/package-lock.json" | |
- name: npm build & i18n validations & build | |
run: | | |
cd 'modules/front-end' | |
npm ci | |
npm run i18n | |
chmod +x ./change_validations.sh | |
./change_validations.sh | |
npm run build --if-present | |
shell: bash |