Skip to content

Commit

Permalink
udpate ci
Browse files Browse the repository at this point in the history
  • Loading branch information
srnovus committed Oct 30, 2024
1 parent 391700a commit 73ff5c8
Showing 1 changed file with 41 additions and 27 deletions.
68 changes: 41 additions & 27 deletions .github/workflows/ci.yml
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

0 comments on commit 73ff5c8

Please sign in to comment.