-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |