45 lines
885 B
YAML
45 lines
885 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@v6
|
|
|
|
- uses: actions/setup-node@v6
|
|
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@v5
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
slug: m-tartari/m-tartari
|