Skip to content

Commit c274a30

Browse files
authored
Alizer updates (#203)
* Add extra case for mongodb Signed-off-by: thepetk <[email protected]> * Upgrade golang Signed-off-by: thepetk <[email protected]> * Update badge Signed-off-by: thepetk <[email protected]> * Improve logging Signed-off-by: thepetk <[email protected]> * Upgrade code-coverage ubuntu version Signed-off-by: thepetk <[email protected]> * Use ubuntu latest Signed-off-by: thepetk <[email protected]> --------- Signed-off-by: thepetk <[email protected]>
1 parent 610872d commit c274a30

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
sarif_file: gosec.sarif
5454

5555
code-coverage-report:
56-
runs-on: ubuntu-20.04
56+
runs-on: ubuntu-latest
5757
steps:
5858
- name: Checkout
5959
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Alizer
22

3-
![Go](https://img.shields.io/badge/Go-1.23-blue)
3+
![Go](https://img.shields.io/badge/Go-1.24-blue)
44
[![Build status](https://github.com/devfile/alizer/actions/workflows/CI.yml/badge.svg)](https://github.com/devfile/alizer/actions/workflows/CI.yml)
55
[![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg)](./LICENSE)
66
[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/8254/badge)](https://www.bestpractices.dev/projects/8254)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/devfile/alizer
22

3-
go 1.23
3+
go 1.24
44

55
require (
66
github.com/go-git/go-git/v5 v5.13.2

test/check_registry/check_registry.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,17 @@ do
8484

8585
# If the correct devfile is not matched throw error
8686
if [ "$found_matching" == "0" ]; then
87-
let ENTRIES_FAILED++
88-
echo "[FAIL] Failed to match project $repo with expected $devfile. Command ./alizer devfile --registry $registry $path"
89-
echo "[FAIL] Output: $alizer_output"
90-
echo "(PASSED: $ENTRIES_PASSED / FAILED: $ENTRIES_FAILED)"
91-
rm -rf tmp/$devfile
92-
exit 1
87+
# nodejs-mongodb similar to nodejs
88+
if [[ "$repo" == "https://github.com/che-samples/nodejs-mongodb-sample" && "$selected_devfile_name" == "nodejs" ]]; then
89+
echo "[WARNING] $repo matched with $selected_devfile_name instead of $devfile. Will not raise error."
90+
else
91+
let ENTRIES_FAILED++
92+
echo "[FAIL] Failed to match project $repo with expected $devfile. Command ./alizer devfile --registry $registry $path"
93+
echo "[FAIL] Output: $alizer_output"
94+
echo "(PASSED: $ENTRIES_PASSED / FAILED: $ENTRIES_FAILED)"
95+
rm -rf tmp/$devfile
96+
exit 1
97+
fi
9398
fi
9499
rm -rf tmp/$devfile
95100
done

0 commit comments

Comments
 (0)