mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
82 lines
1.6 KiB
YAML
82 lines
1.6 KiB
YAML
name: Tests
|
|
on: [push, pull_request]
|
|
jobs:
|
|
lint:
|
|
name: ESLint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Node v16
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 16
|
|
cache: npm
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run ESLint
|
|
run: npm run lint
|
|
|
|
typings:
|
|
name: TSLint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Node v16
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 16
|
|
cache: npm
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run TSLint
|
|
run: npm run lint:typings
|
|
|
|
typescript:
|
|
name: TypeScript
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Node v16
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 16
|
|
cache: npm
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Register Problem Matcher
|
|
run: echo "##[add-matcher].github/tsc.json"
|
|
|
|
- name: Run Type Tests
|
|
run: npm run test:typescript
|
|
|
|
docs:
|
|
name: Documentation
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Node v16
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 16
|
|
cache: npm
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Test documentation
|
|
run: npm run docs:test
|