-
Notifications
You must be signed in to change notification settings - Fork 28
112 lines (104 loc) · 3.76 KB
/
Copy pathci.yml
File metadata and controls
112 lines (104 loc) · 3.76 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: CI
permissions:
contents: read
actions: write
statuses: write
pull-requests: read
on:
push:
branches:
- main
- release/**
- releases/**
- release-*
- auto-release/**
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: pgvector/pgvector:pg17
env:
POSTGRES_DB: junior
POSTGRES_PASSWORD: junior
POSTGRES_USER: junior
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U junior -d junior"
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis:7-alpine
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
DATABASE_URL: postgres://junior:junior@localhost:5432/junior
REDIS_URL: redis://localhost:6379
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "24"
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm exec playwright install --with-deps chromium
- run: pnpm release:check
- run: pnpm skills:check
- run: pnpm lint
- run: pnpm typecheck
- run: pnpm test:ci
- run: pnpm test:e2e:dashboard
- run: pnpm --filter @sentry/junior-example build
env:
JUNIOR_SKIP_SNAPSHOT: "1"
- run: pnpm docs:check
- name: Upload coverage and test results
if: ${{ !cancelled() }}
uses: getsentry/codecov-action@03112cc3b486a3397dc8d17a58680008721fc86f # v0.3.7
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: packages/junior/coverage/coverage-final.json,packages/junior-dashboard/coverage/coverage-final.json
coverage-format: istanbul
disable-search: true
junit-xml-pattern: packages/**/coverage/results.junit.xml
fail_ci_if_error: false
informational-project: true
informational-patch: true
- name: Pack release artifacts
if: github.event_name == 'push'
run: |
mkdir -p artifacts
pnpm --filter @sentry/junior pack --pack-destination artifacts
pnpm --filter @sentry/junior-plugin-api pack --pack-destination artifacts
pnpm --filter @sentry/junior-agent-browser pack --pack-destination artifacts
pnpm --filter @sentry/junior-cloudflare pack --pack-destination artifacts
pnpm --filter @sentry/junior-dashboard pack --pack-destination artifacts
pnpm --filter @sentry/junior-datadog pack --pack-destination artifacts
pnpm --filter @sentry/junior-github pack --pack-destination artifacts
pnpm --filter @sentry/junior-hex pack --pack-destination artifacts
pnpm --filter @sentry/junior-linear pack --pack-destination artifacts
pnpm --filter @sentry/junior-memory pack --pack-destination artifacts
pnpm --filter @sentry/junior-notion pack --pack-destination artifacts
pnpm --filter @sentry/junior-scheduler pack --pack-destination artifacts
pnpm --filter @sentry/junior-maintenance pack --pack-destination artifacts
pnpm --filter @sentry/junior-sentry pack --pack-destination artifacts
pnpm --filter @sentry/junior-vercel pack --pack-destination artifacts
ls -la artifacts
- name: Upload release artifacts
if: github.event_name == 'push'
uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}
path: artifacts/*.tgz
if-no-files-found: error
retention-days: 7