Skip to content

Commit

Permalink
fix(ci): split ci job and fix makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Meier <[email protected]>
  • Loading branch information
astromechza committed Nov 29, 2024
1 parent 22f600a commit 83ad9ec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/linkchecker.yaml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
name: "CI"

on:
pull_request:
push:
branches: main
pull_request: {}

jobs:
linkchecker:
Expand All @@ -19,10 +21,14 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

jsonschema:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
go-version: 'stable'

- name: Check Schema
env:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test-examples: ${GOPATH}/bin/jv
ifeq ($(SCORE_EXAMPLES_DIR),)
$(error SCORE_EXAMPLES_DIR must be set)
endif
find ${SCORE_EXAMPLES_DIR} -name 'score*.yaml' -print -exec ${GOPATH}/bin/jv --assert-format --assert-content ./score-v1b1.json {} \;
for f in $$(find ${SCORE_EXAMPLES_DIR} -name 'score*.yaml' -print); do ${GOPATH}/bin/jv --assert-format --assert-content ./score-v1b1.json $$f; done
@echo "Schema matches all samples"

## Run all tests
Expand Down
2 changes: 1 addition & 1 deletion samples/score-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ resources:
data: here
resource-two2:
type: Resource-Two
resource.three:
resource-three:
type: Type-Three
id: shared-type-three

0 comments on commit 83ad9ec

Please sign in to comment.