Skip to content

Commit 8e2e298

Browse files
authored
ci: regenerate workflows (#83)
## What's Changed Regenerate the workflows from the template.
1 parent 3e13b43 commit 8e2e298

File tree

9 files changed

+1064
-82
lines changed

9 files changed

+1064
-82
lines changed

.github/workflows/dev.yaml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
# This is a common workflow for performing basic PR checks like running
16+
# pre-commit.
17+
1518
name: Dev
1619

1720
on:
@@ -20,9 +23,47 @@ on:
2023
branches:
2124
- main
2225

26+
concurrency:
27+
group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}
28+
cancel-in-progress: true
29+
30+
defaults:
31+
run:
32+
shell: bash
33+
2334
permissions:
2435
contents: read
2536

2637
jobs:
2738
lint:
28-
uses: adbc-drivers/dev/.github/workflows/dev.yaml@742df4896dbb58618cedc0a635f33bdcff3ffb5a
39+
name: "lint & pre-commit"
40+
runs-on: ubuntu-latest
41+
42+
steps:
43+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
44+
with:
45+
fetch-depth: 0
46+
persist-credentials: false
47+
48+
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
49+
with:
50+
cache-dependency-path: go/go.sum
51+
check-latest: true
52+
go-version-file: go/go.mod
53+
54+
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
55+
with:
56+
python-version: "3.x"
57+
58+
- name: Install
59+
run: pip install pre-commit
60+
61+
- name: pre-commit (cache)
62+
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
63+
with:
64+
path: ~/.cache/pre-commit
65+
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
66+
67+
- name: pre-commit
68+
run: |
69+
pre-commit run --all-files --color=always --show-diff-on-failure --verbose

.github/workflows/dev_issues.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Copyright (c) 2025 ADBC Drivers Contributors
2+
#
3+
# This file has been modified from its original version, which is
4+
# under the Apache License:
5+
#
6+
# Licensed to the Apache Software Foundation (ASF) under one
7+
# or more contributor license agreements. See the NOTICE file
8+
# distributed with this work for additional information
9+
# regarding copyright ownership. The ASF licenses this file
10+
# to you under the Apache License, Version 2.0 (the
11+
# "License"); you may not use this file except in compliance
12+
# with the License. You may obtain a copy of the License at
13+
#
14+
# http://www.apache.org/licenses/LICENSE-2.0
15+
#
16+
# Unless required by applicable law or agreed to in writing,
17+
# software distributed under the License is distributed on an
18+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19+
# KIND, either express or implied. See the License for the
20+
# specific language governing permissions and limitations
21+
# under the License.
22+
23+
name: Issues Bot
24+
25+
on:
26+
issue_comment:
27+
types:
28+
- created
29+
- edited
30+
31+
jobs:
32+
issue_assign:
33+
name: "Assign issue"
34+
permissions:
35+
issues: write
36+
if: github.event.comment.body == 'take'
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
40+
with:
41+
github-token: ${{ secrets.GITHUB_TOKEN }}
42+
script: |
43+
github.rest.issues.addAssignees({
44+
owner: context.repo.owner,
45+
repo: context.repo.repo,
46+
issue_number: context.payload.issue.number,
47+
assignees: context.payload.comment.user.login
48+
});

.github/workflows/dev_pr.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Copyright (c) 2025 ADBC Drivers Contributors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# This is a common workflow for performing basic PR checks, like ensuring the
16+
# title format.
17+
18+
name: Dev PR
19+
20+
on:
21+
pull_request_target:
22+
types:
23+
- opened
24+
- edited
25+
- synchronize
26+
- ready_for_review
27+
- review_requested
28+
29+
concurrency:
30+
group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}
31+
cancel-in-progress: true
32+
33+
defaults:
34+
run:
35+
shell: bash
36+
37+
permissions:
38+
contents: read
39+
40+
jobs:
41+
pr_standard:
42+
name: "Check PR"
43+
runs-on: ubuntu-latest
44+
45+
steps:
46+
- name: Check PR title format
47+
env:
48+
PR_TITLE: ${{ github.event.pull_request.title }}
49+
run: |
50+
git clone --depth 1 https://github.com/adbc-drivers/dev
51+
python dev/adbc_drivers_dev/title_check.py $(pwd) "$PR_TITLE"
52+
53+
# TODO: assign milestone

.github/workflows/generate.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright (c) 2025 ADBC Drivers Contributors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
driver = "bigquery"
16+
environment = "BigQuery CI"
17+
private = false
18+
gcloud = true
19+
20+
[lang]
21+
go = true

.github/workflows/go.yaml

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)