mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 17:24:44 +12:00
ci: run a lint cronjob every 12h
This commit is contained in:
parent
45af62a621
commit
3ce60212e6
1 changed files with 48 additions and 0 deletions
48
.github/workflows/lint-cron.yml
vendored
Normal file
48
.github/workflows/lint-cron.yml
vendored
Normal file
|
@ -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
|
Loading…
Reference in a new issue