-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.25 KB
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI
on:
pull_request:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
onlyforms:
name: Onlyforms
runs-on: ubuntu-latest
container: node:20
timeout-minutes: 30
services:
mongodb:
image: mongo:latest
volumes:
- dbdata:/data/db
ports:
- 27017:27017
env:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: latest
run_install: false
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Test
run: pnpm test
env:
MONGO_USERNAME: admin
MONGO_PASSWORD: password
MONGO_HOST: mongodb
MONGO_PORT: 27017
MONGO_DB: onlyforms