Updates to Dependabot (#59) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-License-Identifier: Apache-2.0 | |
# Copyright 2024 Canonical Ltd. | |
# Copyright 2024 Intel Corporation | |
name: Master workflow | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
clang-format: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
path: | |
- check: 'core' | |
exclude: '(kmod)' # Exclude "kmod" dir because of different format | |
- check: 'protobuf' | |
exclude: '' # Nothing to exclude | |
- check: 'sample_plugin/modules' | |
exclude: '' # Nothing to exclude | |
- check: 'sample_plugin/protobuf' | |
exclude: '' # Nothing to exclude | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Clang-format check | |
uses: jidicula/[email protected] | |
with: | |
clang-format-version: '12' | |
check-path: ${{ matrix.path['check'] }} | |
exclude-regex: ${{ matrix.path['exclude'] }} | |
check-spelling: | |
name: Markdown spellcheck | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check Spelling | |
uses: rojopolis/[email protected] | |
with: | |
config_path: .spellcheck.yml | |
task_name: Markdown | |
hadolint: | |
name: hadolint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Dockerfile linter | |
uses: hadolint/[email protected] | |
# For now, ignoring: | |
# DL3008 warning: Pin versions in apt get install (e.g., apt-get install <package>=<version>) | |
with: | |
dockerfile: env/Dockerfile | |
ignore: DL3008 | |
hadolint-cndp: | |
name: hadolint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Dockerfile linter | |
uses: hadolint/[email protected] | |
# For now, ignoring: | |
# DL3008 warning: Pin versions in apt get install (e.g., apt-get install <package>=<version>); and | |
# DL3013 warning: Pin versions in pip (e.g., pip install <package>==<version>) | |
with: | |
dockerfile: env/Dockerfile-cndp | |
ignore: DL3008,DL3013 | |
license-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: reuse lint | |
uses: fsfe/reuse-action@v3 | |
fossa-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: FOSSA scan | |
uses: fossa-contrib/fossa-action@v3 | |
with: | |
fossa-api-key: 0c3bbcdf20e157bbd487dae173751b28 |