This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
145 additions
and
9 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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# SPDX-FileCopyrightText: 2024 Topsector Logistiek | ||
# SPDX-FileContributor: Joost Diepenmaat <[email protected]> | ||
# SPDX-FileContributor: Remco van 't Veer <[email protected]> | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
name: Check dependency vulnerabilities | ||
|
||
on: | ||
|
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,5 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
# SPDX-FileCopyrightText: 2024 Topsector Logistiek | ||
# SPDX-FileContributor: Joost Diepenmaat <[email protected]> | ||
# SPDX-FileContributor: Remco van 't Veer <[email protected]> | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
set -ex | ||
|
||
CLOJURE_VERSION="1.11.1.1273" | ||
|
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,38 @@ | ||
# SPDX-FileCopyrightText: 2024 Jomco B.V. | ||
# SPDX-FileCopyrightText: 2024 Topsector Logistiek | ||
# SPDX-FileContributor: Joost Diepenmaat <[email protected] | ||
# SPDX-FileContributor: Remco van 't Veer <[email protected]> | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
name: Test | ||
|
||
on: push | ||
|
||
jobs: | ||
check: | ||
name: Check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/cache@v4 | ||
with: | ||
path: "~/.m2" | ||
key: "deps-${{ hashFiles('deps.edn') }}" | ||
|
||
- name: Install packages | ||
run: | | ||
sudo apt-get install -y reuse | ||
- name: Install clj runtime | ||
run: | | ||
cd "$HOME" | ||
curl -L -O https://github.com/clojure/brew-install/releases/latest/download/linux-install.sh | ||
bash linux-install.sh -p "$HOME" | ||
- name: Run make check | ||
run: | | ||
PATH="$PATH:$HOME/bin" | ||
make check |
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,3 +8,4 @@ | |
.cpcache | ||
.nrepl-port | ||
*.pem | ||
/ishare-jwt/target/ |
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,20 @@ | ||
# SPDX-FileCopyrightText: 2024 Jomco B.V. | ||
# SPDX-FileCopyrightText: 2024 Topsector Logistiek | ||
# SPDX-FileContributor: Joost Diepenmaat <[email protected] | ||
# SPDX-FileContributor: Remco van 't Veer <[email protected]> | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
.PHONY: check working_tree_clean_check test | ||
|
||
working_tree_clean_check: | ||
# ensure no uncommitted stuff | ||
# git-status --porcelain should print 0 lines. wc -l counts lines | ||
# tee /dev/fd/2 prints any uncommitted changes to stderr for logging in CI | ||
exit $$(git status --porcelain |tee /dev/fd/2| wc -l) | ||
|
||
check: working_tree_clean_check | ||
$(MAKE) -C ishare-jwt check | ||
|
||
test: | ||
$(MAKE) -C ishare-jwt 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 |
---|---|---|
@@ -1 +1,8 @@ | ||
;;; SPDX-FileCopyrightText: 2024 Jomco B.V. | ||
;;; SPDX-FileCopyrightText: 2024 Topsector Logistiek | ||
;;; SPDX-FileContributor: Joost Diepenmaat <[email protected] | ||
;;; SPDX-FileContributor: Remco van 't Veer <[email protected]> | ||
;;; | ||
;;; SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
{:suppression-file ".nvd-suppressions.xml"} |
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,3 +1,12 @@ | ||
<!-- | ||
SPDX-FileCopyrightText: 2024 Topsector Logistiek | ||
SPDX-FileCopyrightText: 2024 Jomco B.V. | ||
SPDX-FileContributor: Joost Diepenmaat <[email protected]> | ||
SPDX-FileContributor: Remco van 't Veer <[email protected]> | ||
SPDX-License-Identifier: AGPL-3.0-or-later | ||
--> | ||
|
||
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd"> | ||
<!-- This is an automatically generated config file by nvd-clojure. --> | ||
<!-- Feel free to tweak it, version-control it and remove any comment. --> | ||
|
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
;;; SPDX-FileCopyrightText: 2024 Jomco B.V. | ||
;;; SPDX-FileCopyrightText: 2024 Topsector Logistiek | ||
;;; SPDX-FileContributor: Joost Diepenmaat <[email protected] | ||
;;; SPDX-FileContributor: Remco van 't Veer <[email protected]> | ||
;;; | ||
;;; SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
(ns build | ||
(:require [clojure.tools.build.api :as b])) | ||
|
||
(def lib 'org.bdinetwork/ishare-jwt) | ||
(def version (format "0.1.%s" (b/git-count-revs nil))) | ||
|
||
(def jar-file (format "target/%s-%s.jar" (name lib) version)) | ||
(def class-dir "target/classes") | ||
|
||
;; delay to defer side effects (artifact downloads) | ||
(def basis (delay (b/create-basis {:project "deps.edn"}))) | ||
|
||
(defn clean [_] | ||
(b/delete {:path "target"})) | ||
|
||
(defn jar [_] | ||
(b/write-pom {:class-dir class-dir | ||
:lib lib | ||
:version version | ||
:basis @basis | ||
:src-dirs ["src"] | ||
:pom-data [[:organization | ||
[:name "BDI Network"] | ||
[:url "https://bdinetwork.org"]] | ||
[:licenses | ||
[:license | ||
[:name "AGPL-3.0-or-later"] | ||
[:url "https://www.gnu.org/licenses/agpl-3.0.en.html"]]]]}) | ||
(b/copy-dir {:src-dirs ["src" "resources"] | ||
:target-dir class-dir}) | ||
(b/jar {:class-dir class-dir | ||
:jar-file jar-file})) |
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