Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/post_create_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ npm install -g @devcontainers/cli
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
REPOSITORY_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd -P)"

sudo "${REPOSITORY_ROOT}/tools/tool_installer.py" install bazelisk shellcheck yamlfmt ruff buildifier
sudo "${REPOSITORY_ROOT}/tools/tool_installer.py" install actionlint bazelisk buildifier ruff shellcheck yamlfmt

pre-commit install

Expand Down
15 changes: 15 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# *******************************************************************************
# Copyright (c) 2026 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
self-hosted-runner:
labels:
- ubuntu-slim
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
name: Validate DevContainer
description: This workflow is checking that updates do not break stuff. If on main branch, publish to "latest" tag.
# This workflow is checking that updates do not break stuff. If on main branch, publish to "latest" tag.
on:
pull_request:
-types: [opened, synchronize, reopened, labeled]
types: [opened, synchronize, reopened, labeled]
push:
branches:
- main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-title-semantic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
name: Validate PR Title
description: This workflow validates pull request titles against semantic conventions.
# This workflow validates pull request titles against semantic conventions.
on:
pull_request_target:
types:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
name: DevContainer Release & Validate & Publish
description: This workflow creates a semantic version release when main changed since the last release tag. Then it checks that for releases, updates do not break stuff and publishes the released container.
# This workflow creates a semantic version release when main changed since the last release tag. Then it checks that for releases, updates do not break stuff and publishes the released container.
on:
schedule:
- cron: '0 0 * * 1'
Expand All @@ -37,7 +37,7 @@ jobs:
fetch-depth: 0
fetch-tags: true
# this should have been done by the checkout action, but it doesn't work in a container, see https://github.com/actions/checkout/issues/766
- run: git config --global --add safe.directory $PWD
- run: git config --global --add safe.directory "$PWD"
# pinned version updated automatically by Dependabot.
# details at https://semantic-release.gitbook.io/semantic-release/usage/installation#global-installation
- name: npx semantic-release
Expand All @@ -47,7 +47,7 @@ jobs:
npx semantic-release@25.0.1 >> /tmp/semantic-release.log 2>&1 || (cat /tmp/semantic-release.log && exit 1)
cat /tmp/semantic-release.log
tag_name=$(grep "Created tag" /tmp/semantic-release.log | sed -E 's/.*Created tag (.*)/\1/')
echo "tag_name=$tag_name" >> $GITHUB_OUTPUT
echo "tag_name=$tag_name" >> "$GITHUB_OUTPUT"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build:
Expand Down
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ repos:
entry: bazelisk mod deps --lockfile_mode=error
language: system
pass_filenames: false
# Formatters
- id: yamlfmt
name: yamlfmt
entry: tools/run_tool.sh yamlfmt
Expand All @@ -50,6 +51,12 @@ repos:
entry: tools/run_tool.sh buildifier
language: system
types: [bazel]
# Static Code Analysis Tools
- id: actionlint
name: actionlint
entry: tools/run_tool.sh actionlint
language: system
files: ^\.github/workflows/.*\.(yml|yaml)$
- id: shellcheck
name: shellcheck
entry: tools/run_tool.sh shellcheck
Expand Down
Loading