initial server and application, setup cicd foreach #1
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 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- name: Install dependencies | |
working-directory: ./server | |
run: npm install | |
- name: Run tests | |
working-directory: ./server | |
run: npm run test | |
- name: Linting | |
working-directory: ./server | |
run: npm run lint | |
- name: Build the project | |
working-directory: ./server | |
run: npm run build | |