From 3ce60212e6c92d4bd2d7113682af4a153dbd4d78 Mon Sep 17 00:00:00 2001 From: iCrawl Date: Sun, 1 Sep 2019 15:41:07 +0200 Subject: [PATCH] ci: run a lint cronjob every 12h --- .github/workflows/lint-cron.yml | 48 +++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/lint-cron.yml diff --git a/.github/workflows/lint-cron.yml b/.github/workflows/lint-cron.yml new file mode 100644 index 000000000..077fe4388 --- /dev/null +++ b/.github/workflows/lint-cron.yml @@ -0,0 +1,48 @@ +name: Lint Cronjob + +on: + schedule: + - cron: '0 */12 * * *' + +jobs: + eslint: + name: eslint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: install node v12 + uses: actions/setup-node@v1 + with: + node-version: 12 + - name: npm install + run: npm install + - name: eslint + uses: npm run lint + + typings-lint: + name: typings-lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: install node v12 + uses: actions/setup-node@v1 + with: + node-version: 12 + - name: npm install + run: npm install + - name: lint typings + run: npm run lint:typings + + docs-lint: + name: docs-lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: install node v12 + uses: actions/setup-node@v1 + with: + node-version: 12 + - name: npm install + run: npm install + - name: lint docs + run: npm run docs:test