Skip to content

Enhance CI workflow and add dashboard page with dark mode support (#17) #6

Enhance CI workflow and add dashboard page with dark mode support (#17)

Enhance CI workflow and add dashboard page with dark mode support (#17) #6

Workflow file for this run

name: CI
on:
push:
branches: [ "main", "developer" ]
pull_request:
branches: [ "main", "developer" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout do código
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Instalar dependências
run: npm ci
- name: Restore Next.js build cache
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Rodar lint
run: npm run lint
- name: Build do projeto
env:
NEXT_TELEMETRY_DISABLED: 1
run: npm run build