From df4821f8dca9a1dd8e5e0e419802cd72be584db9 Mon Sep 17 00:00:00 2001 From: Agustin Mendez Date: Mon, 22 Feb 2021 00:12:21 -0300 Subject: [PATCH] special pipeline --- .github/workflows/cron.yml | 44 ++++++++++++++++++++++++++++++++++++++ .github/workflows/pr.yml | 2 -- 2 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/cron.yml diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml new file mode 100644 index 00000000..94f77302 --- /dev/null +++ b/.github/workflows/cron.yml @@ -0,0 +1,44 @@ +on: + push: + branches: [ master ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ master ] + schedule: + - cron: '34 11 * * 0' + +name: Periodic validation +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Use Node.js 14.x + uses: actions/setup-node@v1 + with: + node-version: 14.x + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: typescript + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + # queries: ./path/to/local/query, your-org/your-repo/queries@main + - name: clean + run: make clean + + - name: install + run: npm ci + + - name: build & test + run: make ci + + - name: print diff if failed + if: ${{ failure() }} + run: cp dist/temp/eth-connect.api.md report/eth-connect.api.md && git diff + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index d54ee6d5..9c759145 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -3,8 +3,6 @@ on: branches-ignore: - "master" pull_request: - schedule: - - cron: '39 10 * * 5' name: CI Validation jobs: