Skip to content

Commit e06acfe

Browse files
committed
add template files and workflow
1 parent b415033 commit e06acfe

17 files changed

Lines changed: 714 additions & 0 deletions

File tree

.github/CODEOWNERS

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Comment out as not in score yet
2+
# * @eclipse-score/infrastructure-tooling-community
3+
# .* @eclipse-score/infrastructure-tooling-community
4+
# .github/CODEOWNERS @eclipse-score/technical-lead
5+
6+
# in separate <module_name> repositories:
7+
#
8+
# /docs @eclipse-score/process-community
9+
# /docs/manual @eclipse-score/<module_name>/safety-manager
10+
# /docs/release @eclipse-score/<module_name>/quality-manager @eclipse-score/<module_name>/module-lead
11+
# /docs/safety_plan @eclipse-score/<module_name>/safety-manager @eclipse-score/<module_name>/module-lead
12+
# /docs/safety_analysis @eclipse-score/<module_name>/safety-manager
13+
# /docs/verification @eclipse-score/<module_name>/quality-manager @eclipse-score/<module_name>/safety-manager
14+
# /components @eclipse-score/<module_name>/technical-lead
15+
# /components/*/ @eclipse-score/<module_name>/automotive-score-committers

.github/ISSUE_TEMPLATE/bug_fix.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Bugfix
3+
about: 'Issue to track a bugfix'
4+
title: 'Bugfix: Your bugfix title'
5+
labels: 'codeowner_review'
6+
assignees: ''
7+
8+
---
9+
10+
> [!IMPORTANT]
11+
> Make sure to link this issue with the PR for your bugfix.
12+
13+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Improvement
3+
about: 'Issue to track a improvement'
4+
title: 'Improvement: Your improvement title'
5+
labels: 'codeowner_review'
6+
assignees: ''
7+
8+
---
9+
10+
> [!IMPORTANT]
11+
> Make sure to link this issue with the PR for your improvement.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Bugfix
2+
3+
> [!IMPORTANT]
4+
> Use this template only for bugfixes that do not influence topics covered by contribution requests or improvements.
5+
6+
> [!CAUTION]
7+
> Make sure to submit your pull-request as **Draft** until you are ready to have it reviewed by the Committers.
8+
9+
## Description
10+
11+
[A short description of the bug being fixed by the contribution.]
12+
13+
## Related ticket
14+
15+
> [!IMPORTANT]
16+
> Please replace `[ISSUE-NUMBER]` with the issue-number that tracks this bug fix. If there is no such
17+
> ticket yet, create one via [this issue template](../ISSUE_TEMPLATE/new?template=bug_fix.md).
18+
19+
closes [ISSUE-NUMBER] (bugfix ticket)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Improvement
2+
3+
> [!IMPORTANT]
4+
> Use this template only for improvement that do not influence topics covered by contribution requests or bug fixes.
5+
6+
> [!CAUTION]
7+
> Make sure to submit your pull-request as **Draft** until you are ready to have it reviewed by the Committers.
8+
9+
## Description
10+
11+
[A short description of the improvement being addressed by the contribution.]
12+
13+
## Related ticket
14+
15+
> [!IMPORTANT]
16+
> Please replace `[ISSUE-NUMBER]` with the issue-number that tracks this bug fix. If there is no such
17+
> ticket yet, create one via [this issue template](../ISSUE_TEMPLATE/new?template=improvement.md).
18+
19+
closes [ISSUE-NUMBER] (improvement ticket)

.github/actions/gitlint/action.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2024 Contributors to the Eclipse Foundation
3+
#
4+
# See the NOTICE file(s) distributed with this work for additional
5+
# information regarding copyright ownership.
6+
#
7+
# This program and the accompanying materials are made available under the
8+
# terms of the Apache License Version 2.0 which is available at
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# SPDX-License-Identifier: Apache-2.0
12+
# *******************************************************************************
13+
14+
name: "Gitlint Action"
15+
description: "An action to install and run Gitlint on PR commits"
16+
inputs:
17+
pr-number:
18+
description: "Pull Request number used to fetch commits"
19+
required: true
20+
base-branch:
21+
description: "Base branch to compare commits against (default: origin/main)"
22+
default: "origin/main"
23+
required: false
24+
runs:
25+
using: "docker"
26+
image: "jorisroovers/gitlint:0.19.1"
27+
entrypoint: /bin/sh
28+
args:
29+
- -c
30+
- |
31+
git config --global --add safe.directory /github/workspace && \
32+
git fetch origin +refs/heads/main:refs/remotes/origin/main && \
33+
git fetch origin +refs/pull/${{ inputs.pr-number }}/head && \
34+
# Fetch the upstream .gitlint config from eclipse-score/score
35+
git clone --depth 1 https://github.com/eclipse-score/score.git /tmp/score-gitlint && \
36+
if ! gitlint --config /tmp/score-gitlint/.gitlint --commits origin/main..HEAD; then \
37+
echo -e "\nWARNING: Your commit message does not follow the required format." && \
38+
echo "Formatting rules: https://eclipse-score.github.io/score/main/contribute/general/git.html#commit-message-format" && \
39+
echo -e "To fix your commit message, run:\n" && \
40+
echo " git commit --amend" && \
41+
echo "Then update your commit (fix gitlint warnings). Finally, force-push:" && \
42+
echo " git push --force-with-lease" && \
43+
exit 1; \
44+
fi
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2024 Contributors to the Eclipse Foundation
3+
#
4+
# See the NOTICE file(s) distributed with this work for additional
5+
# information regarding copyright ownership.
6+
#
7+
# This program and the accompanying materials are made available under the
8+
# terms of the Apache License Version 2.0 which is available at
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# SPDX-License-Identifier: Apache-2.0
12+
# *******************************************************************************
13+
14+
# Workflow configuration for S-CORE CI - Bazel Build & Test daal module
15+
# This workflow runs Bazel build and test when triggered by specific pull request events.
16+
17+
name: Bazel Build & Test daal module
18+
on:
19+
pull_request:
20+
types: [opened, reopened, synchronize]
21+
merge_group:
22+
types: [checks_requested]
23+
jobs:
24+
build_and_test_gcc_host_gcc12:
25+
runs-on: ubuntu-24.04
26+
steps:
27+
- uses: bazel-contrib/setup-bazel@0.15.0
28+
with:
29+
bazelisk-cache: true
30+
disk-cache: ${{ github.workflow }}
31+
repository-cache: true
32+
- name: Checkout repository
33+
uses: actions/checkout@v4.2.2
34+
- name: Bazel build lifecycle
35+
run: |
36+
bazel build //...

.github/workflows/codeql.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
# name: "CodeQL Advanced"
13+
14+
# on:
15+
# push:
16+
# branches: ["main"]
17+
# pull_request:
18+
# branches: ["main"]
19+
20+
# jobs:
21+
# analyze:
22+
# name: Analyze (${{ matrix.language }})
23+
# runs-on: ubuntu-latest
24+
# permissions:
25+
# security-events: write
26+
# packages: read
27+
# actions: read
28+
# contents: read
29+
30+
# strategy:
31+
# fail-fast: false
32+
# matrix:
33+
# include:
34+
# - language: c-cpp
35+
# build-mode: manual
36+
# steps:
37+
# - name: Checkout repository
38+
# uses: actions/checkout@v4
39+
40+
# # Initializes the CodeQL tools for scanning.
41+
# - name: Initialize CodeQL
42+
# uses: github/codeql-action/init@v3
43+
# with:
44+
# languages: ${{ matrix.language }}
45+
# build-mode: ${{ matrix.build-mode }}
46+
# packs: codeql/misra-cpp-coding-standards
47+
48+
# - if: matrix.build-mode == 'manual'
49+
# shell: bash
50+
# run: |
51+
# bazel build //...
52+
# - name: Perform CodeQL Analysis
53+
# uses: github/codeql-action/analyze@v3
54+
# with:
55+
# category: "/language:${{matrix.language}}"
56+
# output: sarif-results.sarif
57+
58+
# - name: Upload Artifact
59+
# uses: actions/upload-artifact@v4
60+
# with:
61+
# name: sarif-results.sarif
62+
# path: sarif-results.sarif

.github/workflows/copyright.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2024 Contributors to the Eclipse Foundation
3+
#
4+
# See the NOTICE file(s) distributed with this work for additional
5+
# information regarding copyright ownership.
6+
#
7+
# This program and the accompanying materials are made available under the
8+
# terms of the Apache License Version 2.0 which is available at
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# SPDX-License-Identifier: Apache-2.0
12+
# *******************************************************************************
13+
14+
name: Copyright checks
15+
on:
16+
pull_request:
17+
types: [opened, reopened, synchronize]
18+
merge_group:
19+
types: [checks_requested]
20+
jobs:
21+
copyright-check:
22+
uses: eclipse-score/cicd-workflows/.github/workflows/copyright.yml@main
23+
with:
24+
bazel-target: "run //:copyright.check"

.github/workflows/format.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2024 Contributors to the Eclipse Foundation
3+
#
4+
# See the NOTICE file(s) distributed with this work for additional
5+
# information regarding copyright ownership.
6+
#
7+
# This program and the accompanying materials are made available under the
8+
# terms of the Apache License Version 2.0 which is available at
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# SPDX-License-Identifier: Apache-2.0
12+
# *******************************************************************************
13+
14+
name: Formatting checks
15+
16+
on:
17+
pull_request:
18+
types: [opened, reopened, synchronize]
19+
merge_group:
20+
types: [checks_requested]
21+
22+
jobs:
23+
formatting-check:
24+
uses: eclipse-score/cicd-workflows/.github/workflows/format.yml@main
25+
with:
26+
bazel-target: "test //:format.check" # optional, this is the default

0 commit comments

Comments
 (0)