Skip to content

Commit 436cd71

Browse files
authored
add the validate job (#46)
1 parent 19c5873 commit 436cd71

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

.github/workflows/ci.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
name: CI
17+
18+
on:
19+
push:
20+
branches:
21+
- 'trunk'
22+
- '4.0'
23+
24+
schedule:
25+
- cron: '0 0 * * 6,0' # Run on Saturday and Sunday at midnight UTC
26+
27+
pull_request:
28+
types: [ opened, synchronize, ready_for_review, reopened ]
29+
branches:
30+
- 'trunk'
31+
- '4.0'
32+
33+
merge_group:
34+
types:
35+
- checks_requested
36+
37+
concurrency:
38+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
39+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
40+
41+
jobs:
42+
validate-patch:
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Checkout code
46+
uses: actions/checkout@v3
47+
with:
48+
fetch-depth: 0
49+
- name: Display info
50+
run: |
51+
pwd
52+
tree -a -I '.git'
53+
echo "Action: ${{ github.event.action }}"
54+
echo "Sender: ${{ github.event.sender.login }}"
55+
git status
56+
git log origin/main..HEAD
57+
- name: Validate files
58+
run: sleep 5
59+
60+
build:
61+
uses: ./.github/workflows/build.yml
62+
with:
63+
is-trunk: ${{ github.ref == 'refs/heads/trunk' }}
64+
is-public-fork: ${{ github.event.pull_request.head.repo.fork || false }}
65+
secrets:
66+
inherit

0 commit comments

Comments
 (0)