Merge pull request #10 from chitangchin/dev #14
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: CI Build and Test Validation | |
on: | |
push: | |
branches: | |
- prod | |
- dev | |
pull_request: | |
branches: | |
- prod | |
- dev | |
jobs: | |
build: | |
name: build_and_test_validation_${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOs-latest] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'latest' # or your preferred Node.js version | |
- name: Install dependencies | |
run: npm install | |
- name: Build project | |
run: npm run build | |
- name: Run tests | |
run: npm run test |