Skip to content

Commit

Permalink
Azure Data Factory CI starter workflow (#1111)
Browse files Browse the repository at this point in the history
* Azure Data Factory CI starter workflow

* fix: data factory starter categories

* fix: checkout step formatting

* fix: data-factory-export targeting latest version

* feature: latest adf validate and export versions

* feature: Azure Data Factory tech_stack category for CI starter

Co-authored-by: Fernando de Oliveira <[email protected]>
  • Loading branch information
fedeoliv and fedeoliv committed Sep 29, 2021
1 parent f0b8c8a commit 7f30309
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
47 changes: 47 additions & 0 deletions ci/azure-data-factory.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Sample workflow to validate Azure Data Factory resources and export its ARM template as an artifact
# Note: Ensure you have the following package.json in the same directory of your ADF resources

# {
# "scripts":{
# "build":"node node_modules/@microsoft/azure-data-factory-utilities/lib/index"
# },
# "dependencies":{
# "@microsoft/azure-data-factory-utilities":"^0.1.5"
# }
# }

name: Data Factory CI

on:
pull_request:
branches: [ $default-branch, $protected-branches ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Code checkout
uses: actions/checkout@v2

- name: Validate
uses: Azure/[email protected]
# with:
# path: <data-factory-dir> # replace by the folder that contains the Data Factory resources and the package.json

# Generate the ARM template into the destination folder, which is the same as selecting "Publish" from the UX.
# The ARM template generated isn't published to the live version of the factory.
- name: Export ARM Template
id: export
uses: Azure/[email protected]
# with:
# path: <data-factory-dir> # replace by the folder that contains the Data Factory resources and the package.json

- name: Publish artifact
uses: actions/upload-artifact@v2
with:
name: Data Factory package
path: ${{ steps.export.outputs.arm-template-directory }}
if-no-files-found: error
7 changes: 7 additions & 0 deletions ci/properties/azure-data-factory.properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "Azure Data Factory",
"creator": "Microsoft Azure",
"description": "Build and validate Azure Data Factory resources",
"iconName": "azure-data-factory",
"categories": ["Continuous integration", "Azure Data Factory"]
}
1 change: 1 addition & 0 deletions icons/azure-data-factory.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7f30309

Please sign in to comment.