Merge pull request #319 from CMSgov/QPPA-9597 #345
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
# | |
# This workflow will build codebase, run linting and test cases on every PR | |
# and push into develop and master branches. | |
# | |
name: Build - PR | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build, Lint and Unit Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Codebase | |
uses: actions/checkout@v4 | |
- name: Setup Node version | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.16.1 | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Run Linting & Execute Unit Tests | |
run: npm test |