fix #260
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 | |
on: [push] | |
jobs: | |
build-and-test-dbstats: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18, 20 ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install shared deps | |
working-directory: ./dbstats/shared | |
run: npm ci | |
- name: Install backend deps | |
working-directory: ./dbstats/backend | |
run: npm ci | |
- name: Install frontend deps | |
working-directory: ./dbstats/frontend | |
run: npm ci | |
- name: build front | |
working-directory: ./dbstats/frontend | |
run: npm run build | |
- name: build back | |
working-directory: ./dbstats/backend | |
run: npm run build | |
- name: test backend | |
working-directory: ./dbstats/backend | |
run: npm run test | |
- name: lint backend | |
working-directory: ./dbstats/backend | |
run: npm run lint | |
- name: lint frontend | |
working-directory: ./dbstats/frontend | |
run: npm run lint |