Merge pull request #2467 from marcusholmgren/dependabot/npm_and_yarn/… #6437
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Node.js CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
server-build: | |
runs-on: ubuntu-latest | |
env: | |
working-dir: ./server | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Server use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn | |
working-directory: ${{ env.working-dir }} | |
- run: yarn build | |
working-directory: ${{ env.working-dir }} | |
# - run: npm test --if-present | |
# working-directory: ${{ env.working-dir }} | |
env: | |
CI: true | |
client-build: | |
runs-on: ubuntu-latest | |
env: | |
working-dir: ./client | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Client use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn | |
working-directory: ${{ env.working-dir }} | |
- run: yarn build | |
working-directory: ${{ env.working-dir }} | |
env: | |
CI: true |