mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
Clean up workflows
This commit is contained in:
67
.github/workflows/deploy.yml
vendored
67
.github/workflows/deploy.yml
vendored
@@ -1,40 +1,47 @@
|
|||||||
name: Deploy
|
name: Deployment
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- '*'
|
||||||
- '!webpack'
|
- '!webpack'
|
||||||
- '!docs'
|
- '!docs'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docs:
|
docs:
|
||||||
name: docs
|
name: Documentation
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- name: Checkout repository
|
||||||
- name: install node v12
|
uses: actions/checkout@master
|
||||||
uses: actions/setup-node@master
|
|
||||||
with:
|
- name: Install Node v12
|
||||||
node-version: 12
|
uses: actions/setup-node@master
|
||||||
- name: npm install
|
with:
|
||||||
run: npm install
|
node-version: 12
|
||||||
- name: docs
|
|
||||||
uses: discordjs/action-docs@v1
|
- name: Install dependencies
|
||||||
env:
|
run: npm install
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
- name: Build and deploy documentation
|
||||||
|
uses: discordjs/action-docs@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
webpack:
|
webpack:
|
||||||
name: webpack
|
name: Webpack
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- name: Checkout repository
|
||||||
- name: install node v12
|
uses: actions/checkout@master
|
||||||
uses: actions/setup-node@master
|
|
||||||
with:
|
- name: Install Node v12
|
||||||
node-version: 12
|
uses: actions/setup-node@master
|
||||||
- name: npm install
|
with:
|
||||||
run: npm install
|
node-version: 12
|
||||||
- name: deploy webpack
|
|
||||||
uses: discordjs/action-webpack@v1
|
- name: Install dependencies
|
||||||
env:
|
run: npm install
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
- name: Build and deploy Webpack
|
||||||
|
uses: discordjs/action-webpack@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
48
.github/workflows/lint-cron.yml
vendored
48
.github/workflows/lint-cron.yml
vendored
@@ -1,48 +0,0 @@
|
|||||||
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
|
|
||||||
run: 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
|
|
||||||
52
.github/workflows/lint.yml
vendored
52
.github/workflows/lint.yml
vendored
@@ -1,52 +0,0 @@
|
|||||||
name: Lint
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
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: discordjs/action-eslint@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
job-name: eslint
|
|
||||||
|
|
||||||
typings:
|
|
||||||
name: typings
|
|
||||||
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:
|
|
||||||
name: docs
|
|
||||||
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
|
|
||||||
58
.github/workflows/test-cron.yml
vendored
Normal file
58
.github/workflows/test-cron.yml
vendored
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
name: Testing Cron
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 */12 * * *'
|
||||||
|
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
|
||||||
|
run: npm run lint
|
||||||
|
|
||||||
|
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
|
||||||
60
.github/workflows/test.yml
vendored
Normal file
60
.github/workflows/test.yml
vendored
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
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
|
||||||
Reference in New Issue
Block a user