Merge pull request #59 from MaryamZi/add-natural-expr-sample #270
This file contains hidden or 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
name: Ballerina build on PR and Merge | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build-packages: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
package: [ | |
azure-cosmosdb-data-as-rest-api, | |
clientary_invoices_to_quickbooks_online_invoices, | |
consuming_services, | |
data_integration/database/db_persistence, | |
data_integration/database/db_sql_client, | |
# data_integration/transformation, | |
ftp-edi-message-to-salesforce-opportunity, | |
gcalendar-new-event-to-trello-card, | |
gcalendar-new-event-to-trello-card-and-twillio-msg, | |
gdrive-files-to-microsoft-onedrive-files, | |
github-issue-summary-to-email, | |
github-pull-requests-to-gsheets, | |
github-pull-requests-to-stdout, | |
gmail-to-salesforce-lead, | |
graphql-social-media-service, | |
graphql_bookstore_service, | |
gsheet-new-row-to-salesforce-new-contact, | |
hubspot-contacts-to-google-contacts, | |
kafka_consumer_producer, | |
kafka_salesforce_integration, | |
mysql-client-with-transactions, | |
mysql-record-to-salesforce-new-product, | |
newsapi_headlines-to-email, | |
pattern-scatter-gather, | |
population_service, | |
produce_and_consume_services, | |
restful-api-with-data-mapper, | |
restful_api, | |
salesforce-new-contact-to-twilio-sms, | |
servicenow-case-to-salesforce-case, | |
shopify-customer-to-salesforce-customer, | |
shopify-new-customers-to-outlook-mail, | |
working_with_data, | |
working_with_databases, | |
working_with_json | |
] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build ${{ matrix.package }} Package | |
uses: ballerina-platform/ballerina-action@master | |
with: | |
args: build ${{ matrix.package }} | |
generate-grpc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Ballerina Generate gRPC | |
uses: ballerina-platform/ballerina-action@master | |
with: | |
args: grpc --input ./grpc_api/descriptor_record_store.proto --output ./grpc_api/ | |
build-grpc-api: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build GRPC API Package | |
uses: ballerina-platform/ballerina-action@master | |
with: | |
args: build grpc_api | |
build-edi: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Ballerina | |
uses: ballerina-platform/setup-ballerina@v1.1.3 | |
with: | |
version: latest | |
- name: Build Pull EDI tool | |
run: bal tool pull edi | |
- name: Generate EDI code | |
run: bal edi codegen -i ./edi-code-generation/schemas/edi-schema.json -o ./edi-code-generation/edi.bal | |
- name: Build EDI Package | |
run: bal build ./edi-code-generation/edi.bal | |
- name: Generate EDI Package | |
run: bal edi libgen -p citymart/porder -i ./edi-package-generation/schemas -o ./edi-package-generation/lib | |
- name: Generate EDI Package | |
run: cd ./edi-package-generation/lib/porder/ && bal pack && bal push --repository=local | |
- name: Build EDI service | |
run: bal build ./edi-package-generation/edi_service | |
build-data-oriented-programming: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
subdirectory: [ | |
data-validation/ballerina, | |
model-data-streams, | |
declarative-data-processing, | |
model-optionality/ballerina, | |
immutability/ballerina, | |
model-tabular-data, | |
model-choices/ballerina, | |
pattern-matching/ballerina, | |
model-constrained-flexible-data/ballerina, | |
xml-support/ballerina, | |
model-data-as-data/ballerina | |
] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build ${{ matrix.subdirectory }} Package | |
uses: ballerina-platform/ballerina-action@master | |
with: | |
args: build data-oriented-programming/${{ matrix.subdirectory }} | |
build-working-with-llms: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build Working with LLMs Package | |
uses: ballerina-platform/ballerina-action@2201.13.0-m1 | |
with: | |
args: build --experimental working-with-llms |