diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..d635d132 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,19 @@ +name: 01-trigger-azure-cast-scan-pipeline +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + workflow_dispatch: + +jobs: + CastScanning: + #runs-on: ubuntu-latest + runs-on: self-hosted + steps: + - name: Azure pipelines actions + uses: Azure/pipelines@v1 + with: + azure-devops-project-url: 'https://dev.azure.com/rvmado/NVS_EH' + azure-pipeline-name: 'azure-pipelines-action' + azure-devops-token: '${{ secrets.AZURE_DEVOPS_TOKEN }}' diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 00000000..e1c53309 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,30 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Node.js CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.5.0] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm cache clean --force + - run: npm install npm@latest -g diff --git a/README.md b/README.md index 999a200d..c101495c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# GitHub Action to trigger a run in Azure pipelines +# GitHub Action to trigger a run in Azure pipelines#Testin GitHub Actions makes it easy to build, test, and deploy your code right from GitHub.