-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor updates, bringin json-csv-core into workspace, organizing GHA's. (
#54) Updating runtimes for current versions to 20. Bringing json-csv-core in as a workspace Action organization.
- Loading branch information
Showing
76 changed files
with
2,362 additions
and
3,786 deletions.
There are no files selected for viewing
File renamed without changes.
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,29 @@ | ||
name: Publish @iwsio/json-csv-core to npmjs.com | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: | | ||
git config user.name github-actions | ||
git config user.email github-actions@github.com | ||
npm config set tag-version-prefix '@iwsio/json-csv-core v' | ||
git fetch | ||
git pull origin main | ||
npm version patch -w packages/json-csv-core -m "@iwsio/json-csv-core %s publish." | ||
git push | ||
git push --tags | ||
- run: npm ci -w packages/json-csv-node -w packages/json-csv-core | ||
- run: npm run build | ||
- run: npm publish --access public -w packages/json-csv-core | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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,28 @@ | ||
name: Test @iwsio/json-csv-core | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Use Node.js 20 (for build) | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: 'npm' | ||
- run: npm ci -w packages/json-csv-node -w packages/json-csv-core | ||
- run: npm run build | ||
- name: Use Node.js ${{ matrix.node-version }} for test runtime | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- run: cd test-runner-core && npm i --omit=dev && npm 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
2 changes: 1 addition & 1 deletion
2
.github/workflows/test-legacy.yml → .github/workflows/legacy-test.yml
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,4 +1,4 @@ | ||
name: Run legacy tests | ||
name: Test json-csv (legacy) | ||
|
||
on: | ||
workflow_call: | ||
|
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
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,11 @@ | ||
name: "PR to main - @iwsio/json-csv-core" | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- 'packages/json-csv-core/**' | ||
jobs: | ||
test: | ||
if: ${{ !contains(github.event.head_commit.message, '#skip') }} | ||
uses: ./.github/workflows/core-test.yaml |
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 was deleted.
Oops, something went wrong.
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,11 @@ | ||
name: "PR to main - @iwsio/json-csv-node" | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- 'packages/json-csv-node/**' | ||
jobs: | ||
test: | ||
if: ${{ !contains(github.event.head_commit.message, '#skip') }} | ||
uses: ./.github/workflows/node-test.yaml |
8 changes: 5 additions & 3 deletions
8
.github/workflows/push-main.yml → .github/workflows/push-core.yml
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,15 +1,17 @@ | ||
name: Push to main | ||
name: Push to main - @iwsio/json-csv-core | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'packages/json-csv-core/**' | ||
|
||
jobs: | ||
test: | ||
if: ${{ !contains(github.event.head_commit.message, '#skip') }} | ||
uses: ./.github/workflows/test.yaml | ||
uses: ./.github/workflows/core-test.yaml | ||
version-and-publish: | ||
needs: test | ||
if: ${{ !contains(github.event.head_commit.message, '#skip') }} | ||
uses: ./.github/workflows/publish.yaml | ||
uses: ./.github/workflows/core-publish.yaml | ||
secrets: inherit |
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,17 @@ | ||
name: Push to main - @iwsio/json-csv-node | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'packages/json-csv-node/**' | ||
|
||
jobs: | ||
test: | ||
if: ${{ !contains(github.event.head_commit.message, '#skip') }} | ||
uses: ./.github/workflows/node-test.yaml | ||
version-and-publish: | ||
needs: test | ||
if: ${{ !contains(github.event.head_commit.message, '#skip') }} | ||
uses: ./.github/workflows/node-publish.yaml | ||
secrets: inherit |
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 @@ | ||
18 | ||
20 |
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,18 @@ | ||
{ | ||
"extends": [ | ||
"./eslint-base.json", | ||
"plugin:node/recommended" | ||
], | ||
|
||
"plugins": [ | ||
"node" | ||
], | ||
|
||
"rules": { | ||
"node/no-missing-import": "off", | ||
"node/no-unsupported-features/es-syntax": "off", | ||
"node/no-extraneous-import": ["error", { | ||
"allowModules": ["@iwsio/json-csv-core", "@iwsio/json-csv-node"] | ||
}] | ||
} | ||
} |
Oops, something went wrong.