Add build push GitHub Action #12
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: Verify Web | |
on: | |
push: | |
branches: | |
- main | |
- development | |
paths: | |
- web/** | |
pull_request: | |
branches: | |
- main | |
- development | |
paths: | |
- web/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- name: Install web dependencies | |
run: cd web && npm ci | |
- name: Lint web | |
run: cd web && npm run lint | |
- name: Build web | |
run: cd web && npm run build |