Skip to content

Commit ccf9ed7

Browse files
dependabot[bot]neilime
authored andcommitted
chore: bump the github-actions-dependencies group across 2 directories with 2 updates
Bumps the github-actions-dependencies group with 1 update in the / directory: [github/codeql-action](https://github.com/github/codeql-action). Bumps the github-actions-dependencies group with 1 update in the /actions/get-matrix-outputs directory: [geekyeggo/delete-artifact](https://github.com/geekyeggo/delete-artifact). Updates `github/codeql-action` from 4.32.6 to 4.33.0 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@0d579ff...b1bff81) Updates `geekyeggo/delete-artifact` from 5.1.0 to 6.0.0 - [Release notes](https://github.com/geekyeggo/delete-artifact/releases) - [Changelog](https://github.com/GeekyEggo/delete-artifact/blob/main/CHANGELOG.md) - [Commits](GeekyEggo/delete-artifact@f275313...176a747) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 4.33.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-dependencies - dependency-name: geekyeggo/delete-artifact dependency-version: 6.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1 parent ff9e5a7 commit ccf9ed7

3 files changed

Lines changed: 30 additions & 17 deletions

File tree

.github/workflows/linter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ jobs:
129129
with:
130130
persist-credentials: false
131131

132-
- uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
132+
- uses: github/codeql-action/init@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0
133133
with:
134134
languages: ${{ matrix.language }}
135135

136-
- uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
136+
- uses: github/codeql-action/analyze@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0
137137
with:
138138
category: "/language:${{matrix.language}}"
139139

Makefile

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,23 @@ lint-fix: ## Execute linting and fix
1717
-e FIX_SHELL_SHFMT=true \
1818
)
1919

20+
setup: ## Install npm dependencies for all package.json files under actions/
21+
@echo "Installing npm dependencies for all packages..."
22+
$(call run_npm_for_packages,install)
23+
2024
npm-audit-fix: ## Execute npm audit fix
21-
@set -uo pipefail; \
22-
overall_status=0; \
23-
packages="$$(find actions -type f -name package.json -not -path '*/node_modules/*' -print | sort)"; \
24-
echo "Running npm audit fix for package.json files under actions/ ..."; \
25-
for pkg in $$packages; do \
26-
pkg_dir="$$(dirname "$$pkg")"; \
27-
echo "---"; \
28-
npm install --prefix "$$pkg_dir"; \
29-
echo "npm audit fix in $$pkg_dir"; \
30-
if ! npm --prefix "$$pkg_dir" audit fix; then \
31-
overall_status=1; \
32-
fi; \
33-
done; \
34-
exit $$overall_status
25+
@echo "Running npm audit fix for all packages..."
26+
$(call run_npm_for_packages,audit fix)
27+
28+
test: ## Execute tests
29+
@echo "Running tests for all packages..."
30+
$(call run_npm_for_packages,test)
3531

3632
ci: ## Execute CI tasks
33+
$(MAKE) setup
3734
$(MAKE) npm-audit-fix
3835
$(MAKE) lint-fix
36+
$(MAKE) test
3937

4038
define run_linter
4139
DEFAULT_WORKSPACE="$(CURDIR)"; \
@@ -52,6 +50,21 @@ define run_linter
5250
$$LINTER_IMAGE
5351
endef
5452

53+
define run_npm_for_packages
54+
@set -uo pipefail; \
55+
overall_status=0; \
56+
packages="$$(find actions -type f -name package.json -not -path '*/node_modules/*' -print | sort)"; \
57+
for pkg in $$packages; do \
58+
pkg_dir="$$(dirname "$$pkg")"; \
59+
echo "---"; \
60+
echo "npm $(1) in $$pkg_dir"; \
61+
if ! npm --prefix "$$pkg_dir" $(1); then \
62+
overall_status=1; \
63+
fi; \
64+
done; \
65+
exit $$overall_status
66+
endef
67+
5568
#############################
5669
# Argument fix workaround
5770
#############################

actions/get-matrix-outputs/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ runs:
7575
}
7676
7777
- if: ${{ inputs.remove-artifact == 'true' }}
78-
uses: geekyeggo/delete-artifact@f275313e70c08f6120db482d7a6b98377786765b # v5.1.0
78+
uses: geekyeggo/delete-artifact@176a747ab7e287e3ff4787bf8a148716375ca118 # v6.0.0
7979
with:
8080
name: ${{ steps.prepare-download.outputs.artifact-name }}-*

0 commit comments

Comments
 (0)