-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tag: 4.0.0 ## shellcheckLint enhancements Added ability to shellcheck all git files in parallel using xargs with compatiility with json, json1, checkstyle formats ## Breaking changes - removed bin/test binary - removed bin/runBuildContainer - removed Docker::runBuildContainer - added GNU sed to alpine image - changed runUnitTests hook to rely on a test.sh file needed to be present in the target repository. ## Github workflow - refactored bin/doc - ensure installRequirements executed - removed uneeded steps for pre-commit - unit test generate checkstyle even if error - cspell - remove global dictionaries config key and adapt cspell rules accordingly - replaced technote-space/workflow-conclusion-action@v3 by AbsoLouie/[email protected]
- Loading branch information
1 parent
37ae985
commit 60fe286
Showing
34 changed files
with
532 additions
and
5,361 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,7 @@ friday | |
frégate | ||
getopt | ||
getsys | ||
GKHF | ||
gpgsign | ||
gsub | ||
HISTFILE | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
adpat -> adapt | ||
fileTest -> fileTest | ||
tst -> test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apos | ||
asort | ||
gensub | ||
getline | ||
gsub | ||
substr | ||
tolower | ||
varchar |
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,6 @@ on: # yamllint disable-line rule:truthy | |
- "**" | ||
# avoid infinite loop for auto created PRs | ||
- "!update/pre-commit-*" | ||
# only rely on tag push for master branch | ||
- "!master" | ||
tags: | ||
- "*" | ||
workflow_dispatch: | ||
|
||
# cancel previous build if several pushes | ||
|
@@ -199,26 +195,19 @@ jobs: | |
echo "branch_name=${GITHUB_REF##*/}" | ||
) >> "${GITHUB_ENV}" | ||
- name: Cache pre-commit | ||
uses: actions/cache@v4 | ||
env: | ||
cache_name: pre-commit | ||
hash: ${{hashFiles('**/.pre-commit-config-github.yaml')}} | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: ${{ runner.os }}-${{ env.cache_name }}-${{ env.hash }} | ||
restore-keys: ${{ runner.os }}-${{ env.cache_name }}- | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install pre-commit | ||
run: pip install pre-commit | ||
|
||
- uses: fchastanet/[email protected] | ||
|
||
- name: Install requirements | ||
run: | | ||
set -exo pipefail | ||
bin/installRequirements | ||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
id: preCommit | ||
|
@@ -382,13 +371,15 @@ jobs: | |
- name: run unit tests | ||
id: unitTests | ||
run: | | ||
set -x | ||
set -o errexit | ||
chmod -R 777 logs | ||
set -exo pipefail | ||
bin/installRequirements | ||
chmod 777 logs | ||
docker pull "scrasnups/build:${{env.image_tag}}" | ||
status=0 | ||
docker run --rm \ | ||
-e KEEP_TEMP_FILES=0 \ | ||
-e BATS_FIX_TEST=0 \ | ||
|
@@ -401,15 +392,15 @@ jobs: | |
/bash/vendor/bats/bin/bats \ | ||
${{env.batsOptions}} \ | ||
--formatter junit -o logs -r src 2>&1 | | ||
tee "logs/bats-${{ env.job_tag }}.log" || exit 1 | ||
tee "logs/bats-${{ env.job_tag }}.log" || status=$? | ||
awk '/xml version="1.0"/{flag=1} flag; /<\/testsuites>/{flag=0}' \ | ||
"logs/bats-${{ env.job_tag }}.log" >"logs/junit-${{ env.job_tag }}.xml" | ||
exit "${status}" | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v4 | ||
# https://stackoverflow.com/a/70549615/3045926 | ||
if: ${{ always() && steps.unitTests.conclusion == 'success' }} | ||
if: ${{ always() }} | ||
with: | ||
token: ${{ github.token }} | ||
check_name: JUnit ${{ env.image_tag }} | ||
|
@@ -419,7 +410,7 @@ jobs: | |
report_paths: "logs/**.xml" | ||
|
||
- name: Upload Test Results | ||
if: ${{ always() && steps.unitTests.conclusion == 'success' }} | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Test Results ${{ env.image_tag }} | ||
|
@@ -443,7 +434,7 @@ jobs: | |
steps: | ||
# run this action to get the workflow conclusion | ||
# You can get the conclusion via env (env.WORKFLOW_CONCLUSION) | ||
- uses: technote-space/workflow-conclusion-action@v3 | ||
- uses: AbsoLouie/workflow-conclusion-[email protected] | ||
|
||
- uses: akatov/commit-status-updater@a9e988ec5454692ff7745a509452422a35172ad6 | ||
with: | ||
|
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
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
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
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
Oops, something went wrong.