Files
website/.github/workflows/build.yml
T
m-tartari c219d95598 👷 chore(CI): extend build workflow
adds linting and production build
2025-03-20 08:39:47 +00:00

45 lines
895 B
YAML

name: build
on:
push:
branches: ['main']
pull_request: {}
workflow_call: {}
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'npm'
- name: Install production dependencies
run: npm ci --omit=dev
- name: Build (production)
run: npm run build:prod
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Lint
run: npm run lint
- name: Test and generate coverage report
run: npm run test:coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: m-tartari/m-tartari.github.io