Skip to content

Commit 080a2f6

Browse files
authored
chore: switch CI jobs to use ubuntu-slim instead of ubuntu-latest (#902)
* chore: switch CI jobs to use ubuntu-slim instead of ubuntu-latest * fix(ci): update license-check action to specific version v0.8.0
1 parent b21da29 commit 080a2f6

4 files changed

Lines changed: 79 additions & 9 deletions

File tree

.github/.licenserc.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
header:
19+
license:
20+
spdx-id: Apache-2.0
21+
copyright-owner: Apache Software Foundation
22+
paths:
23+
- .
24+
excludes:
25+
- build/**
26+
- .docusaurus/**
27+
- "**/*.md"
28+
- "**/*.mdx"
29+
- docs/.markdownlint.yaml
30+
- NOTICE
31+
- DISCLAIMER
32+
- dist/**
33+
- licenses/**
34+
- testing/**
35+
- spark/graphar/src/test/resources/**
36+
- java/src/test/resources/**
37+
- .licenserc.yaml
38+
- .gitleaks.toml
39+
- .gitmodules
40+
- pre-commit-config.yaml
41+
- "**/.gitignore"
42+
- "**/.scalafix.conf"
43+
- "**/.scalafmt.conf"
44+
- cpp/apidoc/**
45+
- cpp/thirdparty/**
46+
- cpp/misc/cpplint.py
47+
- spark/datasources-32/src/main/scala/org/apache/graphar/datasources/**
48+
- spark/datasources-32/src/main/scala/org/apache/spark/sql/graphar/**
49+
- spark/datasources-33/src/main/scala/org/apache/graphar/datasources/**
50+
- spark/datasources-33/src/main/scala/org/apache/spark/sql/graphar/**
51+
- spark/datasources-34/src/main/scala/org/apache/graphar/datasources/**
52+
- spark/datasources-34/src/main/scala/org/apache/spark/sql/graphar/**
53+
- spark/datasources-35/src/main/scala/org/apache/graphar/datasources/**
54+
- spark/datasources-35/src/main/scala/org/apache/spark/sql/graphar/**
55+
- java/src/main/java/org/apache/graphar/stdcxx/StdString.java
56+
- java/src/main/java/org/apache/graphar/stdcxx/StdVector.java
57+
- java/src/main/java/org/apache/graphar/stdcxx/StdSharedPtr.java
58+
- java/src/main/java/org/apache/graphar/stdcxx/StdMap.java
59+
- java/src/main/java/org/apache/graphar/stdcxx/StdUnorderedMap.java
60+
- java/build.xml
61+
- "**/*.json"
62+
- pyspark/poetry.lock
63+
- cli/*.yml
64+
- cli/*.toml

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ concurrency:
3737

3838
jobs:
3939
build-website:
40-
runs-on: ubuntu-latest
40+
runs-on: ubuntu-slim
4141
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
4242
steps:
4343
- uses: actions/checkout@v4

.github/workflows/license.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,21 @@ concurrency:
3030
cancel-in-progress: true
3131

3232
jobs:
33-
check:
34-
runs-on: ubuntu-latest
33+
license-check:
34+
name: License Check
35+
runs-on: ubuntu-slim
3536
steps:
36-
- uses: actions/checkout@v4
37+
- name: Checkout repository
38+
uses: actions/checkout@v4
3739
with:
38-
repository: ${{ github.event.pull_request.head.repo.full_name }}
39-
ref: ${{ github.event.pull_request.head.ref }}
40+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
41+
ref: ${{ github.event.pull_request.head.ref || github.ref }}
4042
submodules: false
4143
fetch-depth: 0
4244

43-
- name: Check License Header
44-
uses: korandoru/hawkeye@v4
45+
- name: Check license header
46+
uses: apache/skywalking-eyes@61275cc80d0798a405cb070f7d3a8aaf7cf2c2c1 # v0.8.0
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
with:
50+
config: .github/.licenserc.yaml

.github/workflows/pr-title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ permissions:
3838
jobs:
3939
validate-title:
4040
name: Validate pull request title
41-
runs-on: ubuntu-latest
41+
runs-on: ubuntu-slim
4242
steps:
4343
- uses: amannn/action-semantic-pull-request@v6
4444
env:

0 commit comments

Comments
 (0)