remove previous navigation step for GH Actions config file #6
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: Server CI | |
on: | |
push: | |
branches: [main, develop] | |
pull_request: | |
branches: [main, develop] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x] | |
steps: | |
#1 Checkout the code | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
#2 Setup Node.js environment | |
- name: Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
cache-dependency-path: server/package-lock.json | |
#3 Install dependencies | |
- name: Install Server Dependencies | |
run: npm ci | |
working-directory: server/ | |
#4 Run server tests | |
- name: Run Server Test Suite | |
run: npm test | |
working-directory: server/ |