Skip to content

feat: Thresholds and Info Page #32

feat: Thresholds and Info Page

feat: Thresholds and Info Page #32

Workflow file for this run

name: Opis CI/CD
on:
pull_request:
branches:
- '**'
push:
branches:
- main
permissions:
contents: write
pages: write
id-token: write
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '24.13.0'
- run: npm ci
- run: npm run lint:fix
test:
needs: lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '24.13.0'
- run: npm ci
- run: npm run test:coverage
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage
build:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '24.13.0'
- run: npm ci
- run: npm run build
# deploy:
# needs: build
# runs-on: ubuntu-latest
# if: github.event_name == 'push' && github.ref == 'refs/heads/main' # deploy solo su main
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# - name: Setup Node.js
# uses: actions/setup-node@v3
# with:
# node-version: "24.13.0"
# - run: npm ci
# - name: Deploy Opis App
# uses: JamesIves/github-pages-deploy-action@v4
# with:
# branch: gh-pages
# folder: dist/opis-manager