-
Notifications
You must be signed in to change notification settings - Fork 5
102 lines (99 loc) · 3.05 KB
/
Copy pathci.yml
File metadata and controls
102 lines (99 loc) · 3.05 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
name: ci
on:
pull_request:
push:
branches: [main]
jobs:
verify:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17-alpine
env:
POSTGRES_USER: contentcloud
POSTGRES_PASSWORD: contentcloud-test
POSTGRES_DB: contentcloud_test
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U contentcloud"
--health-interval 5s
--health-timeout 5s
--health-retries 20
env:
CONTENTCLOUD_TEST_DATABASE_URL: postgres://contentcloud:contentcloud-test@localhost:5432/contentcloud_test?sslmode=disable
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.24.x'
cache: true
- uses: pnpm/action-setup@v4
with:
version: 10.8.1
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: test -z "$(gofmt -l ./cmd ./internal ./contracts ./migrations ./plugins)"
- run: go vet ./...
- run: go test -race ./...
- run: pnpm architecture
- run: pnpm docs:links
- run: pnpm governance:v3
- run: pnpm governance:content
- run: pnpm evaluate:plugin
- run: pnpm test:plugin-signing
- run: pnpm check:plugin
- run: pnpm --dir apps/web typecheck
- run: pnpm --dir apps/web test
- run: pnpm --dir apps/web build
- run: pnpm --dir apps/desktop typecheck
- run: pnpm --dir apps/desktop test
- run: pnpm --dir apps/desktop package
- run: xvfb-run -a pnpm --dir apps/desktop exec playwright test
- run: pnpm desktop:release:check
- run: pnpm test:desktop-release
- run: node --check packages/contentcloud/bin/contentcloud.js
desktop-package-matrix:
name: desktop package (${{ matrix.target }})
strategy:
fail-fast: false
matrix:
include:
- target: darwin-arm64
os: macos-14
platform: darwin
arch: arm64
- target: darwin-x64
os: macos-14
platform: darwin
arch: x64
- target: win32-x64
os: windows-latest
platform: win32
arch: x64
- target: linux-x64
os: ubuntu-latest
platform: linux
arch: x64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10.8.1
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm desktop:release:check
- run: pnpm test:desktop-release
- run: pnpm --dir apps/desktop exec electron-forge package --platform ${{ matrix.platform }} --arch ${{ matrix.arch }}
- uses: actions/upload-artifact@v4
with:
name: content-work-os-desktop-${{ matrix.target }}
path: apps/desktop/out/**
if-no-files-found: error