Skip to content

Update main.yml

Update main.yml #825

Workflow file for this run

name: main
on: [push, pull_request]
jobs:
Setup:

Check failure on line 7 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 7
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3.5.3
- name: Setup Node
uses: actions/setup-node@v3.7.0
with:
node-version: '16'
Client-Dependencies:
needs:
- Setup
runs-on: ubuntu-latest
steps:
- name: Install client dependencies
run: |
cd client
npm install
cd ..
Client-Build:
needs:
- Client-Dependencies
runs-on: ubuntu-latest
steps:
- name: Build client
run: |
cd client
npm run build
cd ..
Server-Dependencies:
needs:
- Setup
runs-on: ubuntu-latest
steps:
- name: Install server dependencies
run: |
cd server
npm install
cd ..
Testing:
needs:
- Client-Build
runs-on: ubuntu-latest
steps:
- name: Frontend Tests
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'master' || github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: |
cd client
npm run test
cd ..