Merge pull request #751 from gravitl/NET-1520 #1785
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 workflow | |
on: | |
push: | |
branches: [master, main, develop, saas-staging, saas-prod] | |
pull_request: | |
branches: [master, main, develop, saas-staging, saas-prod] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Clean Install | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Clean Install | |
run: npm ci | |
- name: Unit/Component testing | |
run: npm run test | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Clean Install | |
run: npm ci | |
- name: Build | |
run: npm run build |