Merge pull request #42 from Callhub-Connect/websocket-pdf #104
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: Build and Test React App | |
on: | |
pull_request: | |
branches: ["*"] | |
push: | |
branches: ["main"] | |
merge_group: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14 # You can change the Node.js version if needed | |
- name: Install dependencies | |
run: npm install | |
- name: Build React App | |
run: npm run build | |
env: | |
CI: false | |
- name: Run tests | |
run: npm test |