Skip to content

Commit 1eda27a

Browse files
committed
Dummy CI
1 parent 39b6044 commit 1eda27a

File tree

2 files changed

+163
-0
lines changed

2 files changed

+163
-0
lines changed
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
name: GitHub Actions Essential CI (Master-Trunk)
2+
on:
3+
merge_group:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
branches:
7+
- "master-trunk"
8+
push:
9+
branches:
10+
- "master-trunk"
11+
- "staging"
12+
- "trying"
13+
workflow_dispatch:
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
16+
cancel-in-progress: true
17+
jobs:
18+
acceptance:
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 5
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
25+
- name: compute metadata
26+
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
27+
- name: dummy acceptance tests
28+
run: |
29+
echo "🧪 Running acceptance tests..."
30+
sleep 3
31+
echo "✅ Acceptance tests passed!"
32+
check_generated_code:
33+
runs-on: ubuntu-latest
34+
timeout-minutes: 5
35+
steps:
36+
- uses: actions/checkout@v4
37+
with:
38+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
39+
- name: compute metadata
40+
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
41+
- name: dummy check generated code
42+
run: |
43+
echo "🔍 Checking generated code..."
44+
sleep 3
45+
echo "✅ Generated code check passed!"
46+
docker_image_amd64:
47+
runs-on: ubuntu-latest
48+
timeout-minutes: 5
49+
steps:
50+
- uses: actions/checkout@v4
51+
with:
52+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
53+
- name: compute metadata
54+
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
55+
- name: dummy docker tests
56+
run: |
57+
echo "🐳 Running docker tests..."
58+
sleep 3
59+
echo "✅ Docker tests passed!"
60+
examples_orms:
61+
runs-on: ubuntu-latest
62+
timeout-minutes: 5
63+
steps:
64+
- uses: actions/checkout@v4
65+
with:
66+
path: cockroach
67+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
68+
- name: compute metadata
69+
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
70+
- name: dummy ORM tests
71+
run: |
72+
echo "🔗 Running ORM examples tests..."
73+
sleep 3
74+
echo "✅ ORM tests passed!"
75+
lint:
76+
runs-on: ubuntu-latest
77+
timeout-minutes: 5
78+
steps:
79+
- uses: actions/checkout@v4
80+
with:
81+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
82+
submodules: true
83+
- name: compute metadata
84+
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
85+
- name: dummy lint tests
86+
run: |
87+
echo "🧹 Running lint tests..."
88+
sleep 3
89+
echo "✅ Lint tests passed!"
90+
local_roachtest:
91+
runs-on: ubuntu-latest
92+
timeout-minutes: 5
93+
steps:
94+
- uses: actions/checkout@v4
95+
with:
96+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
97+
submodules: true
98+
- name: compute metadata
99+
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
100+
- name: dummy local roachtests
101+
run: |
102+
echo "🚀 Running local roachtests..."
103+
sleep 3
104+
echo "✅ Local roachtests passed!"
105+
local_roachtest_fips:
106+
runs-on: ubuntu-latest
107+
timeout-minutes: 5
108+
steps:
109+
- uses: actions/checkout@v4
110+
with:
111+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
112+
submodules: true
113+
- name: compute metadata
114+
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
115+
- name: dummy FIPS roachtests
116+
run: |
117+
echo "🔒 Running FIPS roachtests..."
118+
sleep 3
119+
echo "✅ FIPS roachtests passed!"
120+
linux_amd64_build:
121+
runs-on: ubuntu-latest
122+
timeout-minutes: 5
123+
steps:
124+
- uses: actions/checkout@v4
125+
with:
126+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
127+
- name: compute metadata
128+
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
129+
- name: dummy build
130+
run: |
131+
echo "🔨 Building Linux AMD64..."
132+
sleep 3
133+
echo "✅ Linux AMD64 build passed!"
134+
linux_amd64_fips_build:
135+
runs-on: ubuntu-latest
136+
timeout-minutes: 5
137+
steps:
138+
- uses: actions/checkout@v4
139+
with:
140+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
141+
- name: compute metadata
142+
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
143+
- name: dummy FIPS build
144+
run: |
145+
echo "🔨 Building Linux AMD64 FIPS..."
146+
sleep 3
147+
echo "✅ Linux AMD64 FIPS build passed!"
148+
unit_tests:
149+
runs-on: ubuntu-latest
150+
timeout-minutes: 5
151+
steps:
152+
- uses: actions/checkout@v4
153+
with:
154+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
155+
- name: compute metadata
156+
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
157+
- name: dummy unit tests
158+
run: |
159+
echo "🧪 Running unit tests..."
160+
sleep 3
161+
echo "✅ Unit tests passed!"

.github/workflows/github-actions-essential-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- "master"
88
- "release-*"
99
- "staging-*"
10+
- "!master-trunk"
1011
- "!release-1.0*"
1112
- "!release-1.1*"
1213
- "!release-2.0*"
@@ -31,6 +32,7 @@ on:
3132
- "staging-*"
3233
- "staging"
3334
- "trying"
35+
- "!master-trunk"
3436
- "!release-1.0*"
3537
- "!release-1.1*"
3638
- "!release-2.0*"

0 commit comments

Comments
 (0)