forked from compozy/compozy
-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (89 loc) · 2.32 KB
/
ci.yml
File metadata and controls
102 lines (89 loc) · 2.32 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:
branches:
- main
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CGO_ENABLED: 0
GO_VERSION: "1.26.3"
permissions:
contents: read
pull-requests: read
jobs:
changes:
runs-on: ubuntu-latest
outputs:
verify: ${{ steps.filter.outputs.verify }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Filter paths
id: filter
uses: dorny/paths-filter@v4
with:
filters: |
verify:
- '**/*.go'
- 'go.mod'
- 'go.sum'
- 'Makefile'
- '.bun-version'
- 'bun.lock'
- 'package.json'
- 'packages/ui/**'
- 'web/**'
- 'openapi/**'
- 'scripts/**'
- 'tsconfig.json'
- 'tsconfig.base.json'
- 'turbo.json'
- '.goreleaser.yml'
- '.github/actions/setup-bun/**'
- '.github/actions/setup-go/**'
- '.github/workflows/ci.yml'
- 'cmd/**'
- 'command/**'
- 'internal/**'
- 'skills/**'
verify:
runs-on: ubuntu-latest
timeout-minutes: 45
needs: changes
if: needs.changes.outputs.verify == 'true'
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Go with caching
uses: ./.github/actions/setup-go
with:
go-version: ${{ env.GO_VERSION }}
install-tools: "true"
- name: Set up Bun with caching
uses: ./.github/actions/setup-bun
- name: Install Playwright browser
working-directory: web
run: bunx playwright install --with-deps chromium
- name: Run verification pipeline
run: make verify
continue-on-error: false
env:
CGO_ENABLED: 1
- name: Upload test results
uses: actions/upload-artifact@v7
if: always()
with:
name: verify-results-go-${{ env.GO_VERSION }}
path: |
coverage.out
test-results.xml
.tmp/playwright/**
if-no-files-found: ignore
retention-days: 7