mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
61 lines
1.2 KiB
YAML
61 lines
1.2 KiB
YAML
name: Testing
|
|
on: [push, pull_request]
|
|
jobs:
|
|
lint:
|
|
name: ESLint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Install Node v12
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 12
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Run ESLint
|
|
uses: discordjs/action-eslint@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
job-name: ESLint
|
|
|
|
typings:
|
|
name: TSLint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Install Node v12
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 12
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Run TSLint
|
|
run: npm run lint:typings
|
|
|
|
docs:
|
|
name: Documentation
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Install Node v12
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 12
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Test documentation
|
|
run: npm run docs:test
|