Skip to content

Merge pull request #62 from nesalia-inc/fix/workflow-errors #4

Merge pull request #62 from nesalia-inc/fix/workflow-errors

Merge pull request #62 from nesalia-inc/fix/workflow-errors #4

Workflow file for this run

name: Web
on:
push:
branches: [main]
paths:
- 'apps/web/**'
- '.github/workflows/web.yml'
pull_request:
paths:
- 'apps/web/**'
- '.github/workflows/web.yml'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: apps/web/package-lock.json
- name: Install dependencies
run: npm install
working-directory: apps/web
- name: Run lint
run: npm run lint
working-directory: apps/web
types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: apps/web/package-lock.json
- name: Install dependencies
run: npm install
working-directory: apps/web
- name: Type check
run: npm run types:check
working-directory: apps/web
build:
runs-on: ubuntu-latest
needs: [lint, types]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: apps/web/package-lock.json
- name: Install dependencies
run: npm install
working-directory: apps/web
- name: Build
run: npm run build
working-directory: apps/web