Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
srnovus committed Oct 30, 2024
1 parent 73ff5c8 commit e252bc8
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 31 deletions.
15 changes: 0 additions & 15 deletions .github/labeler.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/build_memory.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build with 1GB

on: [push]

jobs:
build_and_test:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: NODE_ENV=production pnpm i --frozen-lockfile
- run: NODE_ENV=production NODE_OPTIONS=--max-old-space-size=464 pnpm run build
- run: ls built/meta.json
16 changes: 0 additions & 16 deletions .github/workflows/labeler.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Node.js CI

on: [push]

jobs:
build_and_test:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]

services:
mongo:
image: mongo:4.4-bionic
ports:
- 57010:27017
redis:
image: redis:6.2-alpine
ports:
- 56310:6379

steps:
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: node cli/diag-environment.js
- run: sudo apt-get update -y
- run: sudo apt-get install -y --no-install-recommends ffmpeg
- run: pnpm i --frozen-lockfile
- run: pnpm build
- run: ls built/meta.json
- run: cp test/test.yml .config/
- run: pnpm test

0 comments on commit e252bc8

Please sign in to comment.