Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck committed Feb 24, 2024
1 parent 4bb3e52 commit 54958ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/test_proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@ jobs:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- run: env
- name: Checkout
# see https://github.com/actions/checkout
uses: actions/checkout@v4
- name: run tests
run: tools/src/test/proto/test.sh

# TODO: check for breaking changes from this commit to master
# example: https://github.com/DependencyTrack/hyades/blob/main/.github/workflows/buf.yml
8 changes: 4 additions & 4 deletions tools/src/test/proto/test.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env bash
set -ue
set -uex

THIS_DIR="$(dirname "$0")"
REPO_ROOT="$(realpath "${THIS_DIR}/../../../..")"

# paths relative to $REPO_ROOT
SCHEMA_DIR='schema'

REMOTE='https://github.com/CycloneDX/specification.git'
REMOTE="https://github.com/${GITHUB_REPOSITORY:-CycloneDX/specification}.git"

function schema-lint () {
echo '> lint schema files' >&2
Expand All @@ -33,7 +33,7 @@ function schema-lint () {
function schema-breaking-version () {
echo '> test schema for breaking changes against previous version' >&2

if [[ -n "${CI:-}" ]]
if [[ -n "${GITHUB_WORKFLOW:-}" ]]
then
LOG_FORMAT='github-actions'
else
Expand Down Expand Up @@ -62,7 +62,7 @@ function schema-breaking-version () {
function schema-breaking-remote () {
echo '> test schema for breaking changes against remote' >&2

if [[ -n "${CI:-}" ]]
if [[ -n "${GITHUB_WORKFLOW:-}" ]]
then
LOG_FORMAT='github-actions'
else
Expand Down

0 comments on commit 54958ec

Please sign in to comment.