Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

name: CI
on:
push:
branches: [back/main, front/main]
pull_request:
branches: [alpha, main, back/main, front/main, dev]
jobs:
test-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
env:
CI: true
- name: Run linter
run: npm run lint
- name: Build application
run: npm run build