diff --git a/.azure-pipelines/validate.yml b/.azure-pipelines/validate.yml index 1134a3e..9d1ff82 100644 --- a/.azure-pipelines/validate.yml +++ b/.azure-pipelines/validate.yml @@ -17,5 +17,5 @@ steps: - script: | npm install - npm run dtslint + npm run lint displayName: 'npm install and build' diff --git a/.github/workflows/pr_creation_sample.yml b/.github/workflows/pr_creation_sample.yml index 0de7e44..fab0b5a 100644 --- a/.github/workflows/pr_creation_sample.yml +++ b/.github/workflows/pr_creation_sample.yml @@ -1,28 +1,28 @@ name: "auto generate pull request" -on: - push: - branches: test_auto2 - +on: + push: + branches: test_auto2 + jobs: - build: - runs-on: ubuntu-16.04 - steps: - - name: Test working - run: echo "see" - + build: + runs-on: ubuntu-16.04 + steps: + - name: Test pipeline workflow + run: echo "works test" + # This workflow contains a single job called "create-pull-request" - create-pull-request: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Create PR using the GitHub REST API via hub - shell: bash - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - MESSAGE_TITLE: Auto generated pr title - MESSAGE_BODY: "Auto generated pr body" - LABELS: generated - BASE: master - run: | - curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1 - bin/hub pull-request -b "$BASE" -h "$GITHUB_REF" -m "$MESSAGE_TITLE" -m "$MESSAGE_BODY" -l "$LABELS" + create-pull-request: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Create PR using the GitHub REST API via hub + shell: bash + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + MESSAGE_TITLE: Auto generated pr title + MESSAGE_BODY: "Auto generated pr body" + LABELS: generated + BASE: master + run: | + curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1 + bin/hub pull-request -b "$BASE" -h "$GITHUB_REF" -m "$MESSAGE_TITLE" -m "$MESSAGE_BODY" -l "$LABELS" diff --git a/package.json b/package.json index 07027d1..01aed61 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "license": "MIT", "types": "microsoft-graph.d.ts", "scripts": { - "test": "tsc && mocha spec/**.ts" + "test": "tsc && mocha spec/**.ts", + "dtslint":"tsc" }, "typescript": { "definition": "microsoft-graph.d.ts"