Updated WEBSITE_NODE_DEFAULT_VERSION (#182) #349
This file contains hidden or 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 | |
| on: | |
| # Triggers the workflow on push or pull request events but only for the main branch | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| build-and-test: | |
| name: Build and test | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "lts/*" | |
| - name: Setup Server dependencies | |
| working-directory: ./Server | |
| run: | | |
| npm install | |
| - name: Build backend | |
| working-directory: ./Server | |
| shell: bash | |
| run: | | |
| npm run build | |
| clean-frontend: | |
| name: Run clean code tests on frontend | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "lts/*" | |
| - name: Install (dev) dependencies | |
| working-directory: ./Chat | |
| run: npm install | |
| - name: Lint | |
| working-directory: ./Chat | |
| run: npm run lint | |
| - name: Check all is pretty | |
| working-directory: ./Chat | |
| run: npm run prettier:check | |
| - name: Build | |
| working-directory: ./Chat | |
| run: npm run build |