-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
41 additions
and
27 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,39 +1,53 @@ | ||
name: Test (production install and build) | ||
name: Test (fedired.js) | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
branches: [ develop ] | ||
paths: | ||
- packages/fedired-js/** | ||
- .github/workflows/ci.yml | ||
pull_request: | ||
|
||
env: | ||
NODE_ENV: production | ||
|
||
branches: [ develop ] | ||
paths: | ||
- packages/fedired-js/** | ||
- .github/workflows/ci.yml | ||
jobs: | ||
production: | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.16.0] | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
submodules: true | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
- 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 --no-frozen-lockfile # Cambiado aquí | ||
- 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 | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- run: corepack enable | ||
|
||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm i --frozen-lockfile | ||
|
||
- name: Check pnpm-lock.yaml | ||
run: git diff --exit-code pnpm-lock.yaml | ||
|
||
- name: Build | ||
run: pnpm --filter fedired-js build | ||
|
||
- name: Test | ||
run: pnpm --filter fedired-js test | ||
env: | ||
CI: true | ||
|
||
- name: Upload Coverage | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./packages/fedired-js/coverage/coverage-final.json |