Skip to content

Commit f20365c

Browse files
authored
Merge pull request #1 from nlighten-oss/feature/restructure
restructure packages by language
2 parents 7d6d316 + ef7379e commit f20365c

File tree

345 files changed

+77
-51
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

345 files changed

+77
-51
lines changed

.github/workflows/docs-test.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
name: Test Docs deployment
1+
name: Docs Test
22

33
on:
44
pull_request:
55
branches:
66
- main
77
paths:
8-
- packages/docs/**
8+
- docs/**
99
# Allows you to run this workflow manually from the Actions tab
1010
workflow_dispatch:
1111

12-
defaults:
13-
run:
14-
working-directory: ./packages/docs
12+
# cancel previous tests if new commit is pushed to PR branch
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
1516

1617
jobs:
1718
test-docs:
@@ -25,9 +26,12 @@ jobs:
2526
with:
2627
node-version: 18
2728
cache: npm
28-
cache-dependency-path: './packages/docs/package-lock.json'
29+
cache-dependency-path: ./docs/package-lock.json
2930

3031
- name: Install dependencies
32+
working-directory: ./docs
3133
run: npm ci
34+
3235
- name: Test build website
36+
working-directory: ./docs
3337
run: npm run build

.github/workflows/docs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: Deploy Docs to GitHub Pages
1+
name: Docs deploy to GitHub Pages
22

33
on:
44
push:
55
branches:
66
- main
77
paths:
8-
- packages/docs/**
8+
- docs/**
99
# Allows you to run this workflow manually from the Actions tab
1010
workflow_dispatch:
1111

@@ -29,20 +29,20 @@ jobs:
2929
with:
3030
node-version: 18
3131
cache: npm
32-
cache-dependency-path: './packages/docs/package-lock.json'
32+
cache-dependency-path: ./docs/package-lock.json
3333

3434
- name: Install Dependencies
35-
working-directory: './packages/docs'
35+
working-directory: ./docs
3636
run: npm ci
3737

3838
- name: Build
39-
working-directory: './packages/docs'
39+
working-directory: ./docs
4040
run: npm run build
4141

4242
- name: Upload artifact
4343
uses: actions/upload-pages-artifact@v3
4444
with:
45-
path: './packages/docs/build'
45+
path: ./docs/build
4646
deploy:
4747
name: Deploy to GitHub Pages
4848
needs: build

.github/workflows/ci.yml renamed to .github/workflows/java-json-transform-test.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
name: Test Java CI
1+
name: Java json-transform Test
22

33
on:
44
push:
55
branches: [ "main" ]
66
paths:
7-
- '!packages/**'
7+
- java/json-transform/**
88
pull_request:
99
branches: [ "main" ]
1010
paths:
11-
- '!packages/**'
11+
- java/json-transform/**
1212

1313
# cancel previous tests if new commit is pushed to PR branch
1414
concurrency:
@@ -43,7 +43,16 @@ jobs:
4343
with:
4444
# build includes tests
4545
arguments: |
46-
build
46+
:java:json-transform:build
47+
--console=plain
48+
--parallel
49+
-Dorg.gradle.parallel.intra=true
50+
51+
- name: Run benchmarking tests with Gradle
52+
uses: gradle/[email protected]
53+
with:
54+
arguments: |
55+
:java:json-transform:jmh
4756
--console=plain
4857
--parallel
4958
-Dorg.gradle.parallel.intra=true
@@ -52,7 +61,7 @@ jobs:
5261
uses: dorny/test-reporter@v1
5362
if: success() || failure() # run this step even if previous step failed
5463
with:
55-
name: Test Results # Name of the check run which will be created
64+
name: Java json-transform Test Results # Name of the check run which will be created
5665
path: '**/build/test-results/test/*.xml' # Path to test results
5766
reporter: java-junit # Format of test results
5867
list-suites: 'failed' # Limits which test suites are listed: (*all/failed) *default
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
1-
name: Run Tests
1+
name: JavaScript json-transform-core Test
22

33
on:
44
pull_request:
55
branches:
66
- main
77
paths:
8-
- packages/json-transform-core/**
8+
- javascript/json-transform-core/**
9+
910
# cancel previous tests if new commit is pushed to PR branch
1011
concurrency:
1112
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1213
cancel-in-progress: true
1314

14-
defaults:
15-
run:
16-
working-directory: ./packages/json-transform-core
17-
1815
jobs:
1916
test:
2017
runs-on: ubuntu-latest
@@ -25,8 +22,12 @@ jobs:
2522
with:
2623
node-version: 18
2724
cache: npm
28-
cache-dependency-path: './packages/json-transform-core/package-lock.json'
25+
cache-dependency-path: ./javascript/json-transform-core/package-lock.json
26+
2927
- name: Install dependencies
28+
working-directory: ./javascript/json-transform-core
3029
run: npm ci
30+
3131
- name: Run tests
32+
working-directory: ./javascript/json-transform-core
3233
run: npm test

README.md

Lines changed: 6 additions & 24 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)