-
Notifications
You must be signed in to change notification settings - Fork 7
68 lines (61 loc) · 1.79 KB
/
ci.yml
File metadata and controls
68 lines (61 loc) · 1.79 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
name: CI
permissions:
contents: read
actions: write
on:
push:
branches:
- main
- release/**
- releases/**
- release-*
- auto-release/**
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
services:
redis:
image: redis:7-alpine
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
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 release:check
- run: pnpm lint
- run: pnpm test
- run: pnpm --filter @sentry/junior-example build
- run: pnpm docs:check
- 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-agent-browser pack --pack-destination artifacts
pnpm --filter @sentry/junior-github pack --pack-destination artifacts
pnpm --filter @sentry/junior-linear pack --pack-destination artifacts
pnpm --filter @sentry/junior-notion pack --pack-destination artifacts
pnpm --filter @sentry/junior-sentry 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