Skip to content

Commit

Permalink
special pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
menduz committed Feb 22, 2021
1 parent 8f82364 commit df4821f
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 0 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ on:
branches-ignore:
- "master"
pull_request:
schedule:
- cron: '39 10 * * 5'

name: CI Validation
jobs:
Expand Down

0 comments on commit df4821f

Please sign in to comment.