-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from LakshanWeerasinghe/initial-impl
Add initial project structure, gradle files and workflow files
- Loading branch information
Showing
30 changed files
with
1,194 additions
and
2 deletions.
There are no files selected for viewing
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,9 @@ | ||
# | ||
# https://help.github.com/articles/dealing-with-line-endings/ | ||
# | ||
# Linux start script should use lf | ||
/gradlew text eol=lf | ||
|
||
# These are Windows script files and should use crlf | ||
*.bat text eol=crlf | ||
|
Validating CODEOWNERS rules …
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,7 @@ | ||
# Lines starting with '#' are comments. | ||
# Each line is a file pattern followed by one or more owners. | ||
|
||
# See: https://help.github.com/articles/about-codeowners/ | ||
|
||
# These owners will be the default owners for everything in the repo. | ||
* @LakshanWeerasinghe |
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,12 @@ | ||
## Purpose | ||
|
||
Fixes: | ||
|
||
## Examples | ||
|
||
## Checklist | ||
- [ ] Linked to an issue | ||
- [ ] Updated the changelog | ||
- [ ] Added tests | ||
- [ ] Updated the spec | ||
- [ ] Checked native-image compatibility |
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 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '*.md' | ||
- 'docs/**' | ||
- 'load-tests/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
call_workflow: | ||
name: Run Build Workflow | ||
if: ${{ github.repository_owner == 'ballerina-platform' }} | ||
uses: ballerina-platform/ballerina-library/.github/workflows/build-timestamp-master-template.yml@main | ||
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: GraalVM Check | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
lang_tag: | ||
description: Branch/Release Tag of the Ballerina Lang | ||
required: true | ||
default: master | ||
lang_version: | ||
description: Ballerina Lang Version (If given ballerina lang build will be skipped) | ||
required: false | ||
default: '' | ||
native_image_options: | ||
description: Default native-image options | ||
required: false | ||
default: '' | ||
schedule: | ||
- cron: '30 18 * * *' | ||
pull_request: | ||
branches: | ||
- main | ||
types: [ opened, synchronize, reopened, labeled, unlabeled ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
call_stdlib_workflow: | ||
name: Run StdLib Workflow | ||
if: ${{ github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository_owner == 'ballerina-platform') }} | ||
uses: ballerina-platform/ballerina-library/.github/workflows/build-with-bal-test-graalvm-template.yml@main | ||
with: | ||
lang_tag: ${{ inputs.lang_tag }} | ||
lang_version: ${{ inputs.lang_version }} | ||
native_image_options: '-J-Xmx7G ${{ inputs.native_image_options }}' |
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,21 @@ | ||
name: Publish to the Ballerina central | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
environment: | ||
type: choice | ||
description: Select Environment | ||
required: true | ||
options: | ||
- DEV CENTRAL | ||
- STAGE CENTRAL | ||
|
||
jobs: | ||
call_workflow: | ||
name: Run Central Publish Workflow | ||
if: ${{ github.repository_owner == 'ballerina-platform' }} | ||
uses: ballerina-platform/ballerina-library/.github/workflows/central-publish-template.yml@main | ||
secrets: inherit | ||
with: | ||
environment: ${{ github.event.inputs.environment }} |
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,16 @@ | ||
name: Publish Release | ||
|
||
on: | ||
workflow_dispatch: | ||
repository_dispatch: | ||
types: [stdlib-release-pipeline] | ||
|
||
jobs: | ||
call_workflow: | ||
name: Run Release Workflow | ||
if: ${{ github.repository_owner == 'ballerina-platform' }} | ||
uses: ballerina-platform/ballerina-library/.github/workflows/release-package-template.yml@main | ||
secrets: inherit | ||
with: | ||
package-name: data.yaml | ||
package-org: ballerina |
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,14 @@ | ||
name: Pull Request | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
call_workflow: | ||
name: Run PR Build Workflow | ||
if: ${{ github.repository_owner == 'ballerina-platform' }} | ||
uses: ballerina-platform/ballerina-library/.github/workflows/pull-request-build-template.yml@main | ||
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: 'Close stale pull requests' | ||
|
||
on: | ||
schedule: | ||
- cron: '30 19 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v3 | ||
with: | ||
stale-pr-message: 'This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the `stale` label is removed or commented.' | ||
close-pr-message: 'Closed PR due to inactivity for more than 18 days.' | ||
days-before-pr-stale: 15 | ||
days-before-pr-close: 3 | ||
days-before-issue-stale: -1 | ||
days-before-issue-close: -1 |
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,13 @@ | ||
name: Trivy | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '30 20 * * *' | ||
|
||
jobs: | ||
call_workflow: | ||
name: Run Trivy Scan Workflow | ||
if: ${{ github.repository_owner == 'ballerina-platform' }} | ||
uses: ballerina-platform/ballerina-library/.github/workflows/trivy-scan-template.yml@main | ||
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 |
---|---|---|
@@ -1,2 +1,82 @@ | ||
# module-ballerina-data.yaml | ||
The Ballerina YAML Data Library is a comprehensive toolkit designed to facilitate the handling and manipulation of YAML data within Ballerina applications. | ||
Ballerina YAML Data Library | ||
=================== | ||
|
||
The Ballerina YAML Data Library is a comprehensive toolkit designed to facilitate the handling and manipulation of | ||
YAML data within Ballerina applications. | ||
|
||
## Issues and projects | ||
|
||
Issues and Project are disabled for this repository as this is part of the Ballerina Standard Library. | ||
To report bugs, request new features, start new discussions, view project boards, etc. | ||
please visit Ballerina Library | ||
[parent repository](https://github.com/ballerina-platform/ballerina-library). | ||
|
||
This repository only contains the source code for the package. | ||
|
||
## Build from the source | ||
|
||
### Set up the prerequisites | ||
|
||
1. Download and install Java SE Development Kit (JDK) version 17 (from one of the following locations). | ||
* [Oracle](https://www.oracle.com/java/technologies/downloads/) | ||
|
||
* [OpenJDK](https://adoptium.net/) | ||
|
||
> **Note:** Set the JAVA_HOME environment variable to the path name of the directory into which you installed JDK. | ||
### Build the source | ||
|
||
Execute the commands below to build from source. | ||
|
||
1. To build the library: | ||
|
||
./gradlew clean build | ||
|
||
2. To run the tests: | ||
|
||
./gradlew clean test | ||
|
||
3. To build the package without tests: | ||
|
||
./gradlew clean build -x test | ||
|
||
4. To run a group of tests: | ||
|
||
./gradlew clean test -Pgroups=<test_group_names> | ||
|
||
5. To debug package implementation: | ||
|
||
./gradlew clean build -Pdebug=<port> | ||
|
||
6. To debug the package with Ballerina language: | ||
|
||
./gradlew clean build -PbalJavaDebug=<port> | ||
|
||
7. Publish ZIP artifact to the local `.m2` repository: | ||
|
||
./gradlew clean build publishToMavenLocal | ||
|
||
8. Publish the generated artifacts to the local Ballerina central repository: | ||
|
||
./gradlew clean build -PpublishToLocalCentral=true | ||
|
||
9. Publish the generated artifacts to the Ballerina central repository: | ||
|
||
./gradlew clean build -PpublishToCentral=true | ||
|
||
## Contribute to Ballerina | ||
|
||
As an open source project, Ballerina welcomes contributions from the community. | ||
|
||
For more information, go to the [contribution guidelines](https://github.com/ballerina-platform/ballerina-lang/blob/master/CONTRIBUTING.md). | ||
|
||
## Code of conduct | ||
|
||
All contributors are encouraged to read the [Ballerina Code of Conduct](https://ballerina.io/code-of-conduct). | ||
|
||
## Useful links | ||
|
||
* Chat live with us via our [Discord server](https://discord.gg/ballerinalang). | ||
* Post all technical questions on Stack Overflow with the [#ballerina](https://stackoverflow.com/questions/tagged/ballerina) tag. | ||
* For more information go to the [`data.yaml` library](https://lib.ballerina.io/ballerina/data.yaml/latest). | ||
* For example demonstrations of the usage, go to [Ballerina By Examples](https://ballerina.io/swan-lake/learn/by-example/). |
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 @@ | ||
[package] | ||
org = "ballerina" | ||
name = "data.yaml" | ||
version = "0.1.0" | ||
authors = ["Ballerina"] | ||
keywords = ["yaml"] | ||
repository = "https://github.com/ballerina-platform/module-ballerina-data.yaml" | ||
license = ["Apache-2.0"] | ||
distribution = "2201.8.1" | ||
|
||
[platform.java17] | ||
graalvmCompatible = true | ||
|
||
[[platform.java17.dependency]] | ||
groupId = "io.ballerina.stdlib" | ||
artifactId = "yaml-native" | ||
version = "0.1.0" | ||
path = "../native/build/libs/data.yaml-native-0.1.0-SNAPSHOT.jar" |
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 @@ | ||
# AUTO-GENERATED FILE. DO NOT MODIFY. | ||
|
||
# This file is auto-generated by Ballerina for managing dependency versions. | ||
# It should not be modified by hand. | ||
|
||
[ballerina] | ||
dependencies-toml-version = "2" | ||
distribution-version = "2201.9.0" | ||
|
||
[[package]] | ||
org = "ballerina" | ||
name = "data.yaml" | ||
version = "0.1.0" | ||
dependencies = [ | ||
{org = "ballerina", name = "jballerina.java"} | ||
] | ||
modules = [ | ||
{org = "ballerina", packageName = "data.yaml", moduleName = "data.yaml"} | ||
] | ||
|
||
[[package]] | ||
org = "ballerina" | ||
name = "jballerina.java" | ||
version = "0.0.0" | ||
modules = [ | ||
{org = "ballerina", packageName = "jballerina.java", moduleName = "jballerina.java"} | ||
] | ||
|
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,5 @@ | ||
# module-ballerina-data.yaml | ||
The Ballerina YAML Data Library is a comprehensive toolkit designed to facilitate the handling and manipulation of | ||
YAML data within Ballerina applications. | ||
It streamlines the process of converting YAML data to native Ballerina data types, | ||
enabling developers to work with YAML content seamlessly and efficiently. |
Oops, something went wrong.