Skip to content

Commit

Permalink
Merge branch 'main' into nvus
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Caceres <[email protected]>
  • Loading branch information
srnovus authored Oct 31, 2024
2 parents 5135f62 + 32203f2 commit 6f29035
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/fedired/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
url: 'http://fedired.local'

setupPassword: example_password_please_change_this_or_you_will_get_hacked

port: 61812

db:
host: 127.0.0.1
port: 54312
db: test-fedired
user: postgres
pass: ''
redis:
host: 127.0.0.1
port: 56312
id: aidx
15 changes: 15 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# .github/labeler.yml

version: 2

pull_request:
'packages/backend/**':
- backend
'packages/backend-rs/**':
- backend-rust
'packages/client/**':
- client
'packages/sw/**':
- service-worker
'packages/fedired-js/**':
- frontend
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test (production install and build)

on:
push:
branches:
- master
- develop
pull_request:

env:
NODE_ENV: production

jobs:
production:
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
16 changes: 16 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Pull Request Labeler"
on:
pull_request_target:
branches-ignore:
- 'l10n_develop'

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
31 changes: 31 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test

0 comments on commit 6f29035

Please sign in to comment.