Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into cli-command-help
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Jan 20, 2024
2 parents e98a210 + 052ba67 commit 58d8ea7
Show file tree
Hide file tree
Showing 158 changed files with 15,639 additions and 19,148 deletions.
7 changes: 7 additions & 0 deletions .changeset/flat-lamps-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"barnard59-validation": patch
"barnard59-core": patch
"barnard59": patch
---

Improve Windows compatibility (re zazuko/rdf-loader-code#34)
5 changes: 5 additions & 0 deletions .changeset/modern-houses-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"barnard59-cube": minor
---

Shape creation refactoring and improvements
5 changes: 5 additions & 0 deletions .changeset/old-squids-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"barnard59-env": patch
---

Update `@zazuko/env` to v2
5 changes: 5 additions & 0 deletions .changeset/purple-taxis-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"barnard59-shacl": patch
---

Updated `rdf-validate-shacl`
5 changes: 5 additions & 0 deletions .changeset/wild-maps-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"barnard59": minor
---

Support [`code:imports`](https://github.com/zazuko/rdf-transform-graph-imports) when loading pipeline definitions (closes #93)
6 changes: 6 additions & 0 deletions .changeset/young-geese-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"barnard59-base": minor
"barnard59-cube": patch
---

added batch operation
56 changes: 51 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,26 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm ci
- name: Compile TypeScript packages
run: npx wsrun -mc prepack --sourceMap
run: npx wsrun -mc build --sourceMap
- run: npx c8 --all --src packages/${{ matrix.package }} -x "packages/!(${{ matrix.package }})" --reporter lcovonly --reporter text wsrun --no-prefix -p barnard59-${{ matrix.package }} -c test
- name: Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: barnard59-${{ matrix.package }}

type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm ci
- run: npx wsrun -mc build

test-cli:
runs-on: ubuntu-latest
strategy:
Expand All @@ -51,9 +61,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm ci
- name: Compile TypeScript packages
run: npx wsrun -mc prepack --sourceMap
run: npx wsrun -mc build --sourceMap
- run: npx c8 --all --src packages/cli -x "packages/!(cli)" --reporter lcovonly --reporter text wsrun --no-prefix -p barnard59 -c test
- name: Codecov
uses: codecov/codecov-action@v3
Expand All @@ -69,15 +79,51 @@ jobs:
- run: npm ci
- run: npm run lint

smoke-test-cli:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- run: npm ci
- run: npx barnard59 run test/e2e/definitions/file-loader.ttl
- run: npx barnard59 run test/e2e/definitions/foreach/with-handler.ttl
- run: npx barnard59 run test/e2e/definitions/foreach/with-variable.ttl --variable pattern="test/e2e/definitions/foreach/*"
- run: npx barnard59 run test/e2e/definitions/foreach/csv-duplicate.ttl --variable filename=test/e2e/data/test.csv
- run: npx barnard59 run test/e2e/definitions/world-clock/async.ttl
- run: npx barnard59 run test/e2e/definitions/world-clock/file.ttl
- run: npx barnard59 run test/e2e/definitions/world-clock/node.ttl
- run: npx barnard59 run test/e2e/definitions/code-imports/main.ttl

global-installation:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- run: npm ci
- name: pack all
run: npm pack -ws
- run: npm install -g barnard59-*.tgz
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
- run: cmd /c npm install -g (Get-ChildItem -Filter barnard59-*.tgz).FullName
if: matrix.os == 'windows-latest'
- run: which barnard59
- run: barnard59 --help
- run: barnard59 shacl validate --shapes test/support/pipeline-shapes.ttl < test/e2e/definitions/file-loader.ttl
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
- run: barnard59 shacl validate --shapes test/support/pipeline-shapes.ttl < test/e2e/definitions/file-loader.ttl
if: matrix.os == 'windows-latest'
shell: cmd
Loading

0 comments on commit 58d8ea7

Please sign in to comment.