Skip to content

ci test1

ci test1 #4

Workflow file for this run

name: Build and deploy
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
working-directory: ./server
uses: actions/setup-node@v2
with:
node-version: '20'

Check failure on line 21 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build and deploy

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 21, Col: 9): Unexpected value 'uses' .github/workflows/build.yml (Line: 22, Col: 9): Unexpected value 'with'
- name: Cache server dependencies
working-directory: ./server
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/server/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
working-directory: ./server
run: npm install
- name: Generate Prisma Client
working-directory: ./server
run: npx prisma generate
- name: Run tests
working-directory: ./server
run: npm test
- name: Build
working-directory: ./server
run: npm run build