Skip to content

Commit

Permalink
update error ci
Browse files Browse the repository at this point in the history
  • Loading branch information
srnovus committed Oct 30, 2024
1 parent 8e2c336 commit 2192f0f
Showing 1 changed file with 36 additions and 23 deletions.
59 changes: 36 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,49 @@
name: CI
name: Test (production install and build)

on:
push:
branches:
- main # Se ejecuta en la rama main
- nvus # Se ejecuta en la rama nvus
- main # Cambia a main en lugar de master
- nvus # Mantén la rama nvus
pull_request:
branches:
- main # Se ejecuta para pull requests a la rama main
- nvus # Se ejecuta para pull requests a la rama nvus
- main
- nvus

env:
NODE_ENV: production

jobs:
build:
production:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
strategy:
matrix:
node-version: [20.16.0]

- name: Setup Node.js
uses: actions/setup-node@v2
steps:
- uses: actions/[email protected]
with:
node-version: '20'

- name: Install PNPM
uses: pnpm/action-setup@v2.0.0
submodules: true
- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Install Dependencies
run: pnpm install

- name: Run Tests
run: pnpm test

- name: Build Packages
run: pnpm run build
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- run: corepack enable

- run: pnpm i --frozen-lockfile

- name: Check pnpm-lock.yaml
run: git diff --exit-code pnpm-lock.yaml

- name: Copy Configure
run: cp .github/fedired/test.yml .config/default.yml

- name: Build
run: pnpm build

0 comments on commit 2192f0f

Please sign in to comment.