first commit trial? #391
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 all components | |
on: | |
push: | |
branches: ['main', 'build-action'] | |
pull_request: | |
branches: ['main'] | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
workspace: | |
- client | |
- server | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Check with ESLint | |
run: npm run lint --workspace ${{ matrix.workspace }} | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
workspace: | |
- client | |
- server | |
- database | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Build app | |
run: npm run build --workspace ${{ matrix.workspace }} |