Implement adapter logic for Discord API Clients (discord.js, Eris) #1128
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ESLint | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- '*' | |
- '!docs' | |
- '!gh-pages' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: ESLint | |
runs-on: ubuntu-latest | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install Node v18 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 20 | |
- name: Cache yarn | |
uses: actions/cache@v3 | |
with: | |
path: .yarn/cache | |
key: yarn-cache-node-20 | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Build | |
run: yarn build | |
- name: Run ESLint | |
run: yarn lint | |
- name: Run TSC | |
run: yarn build:check | |
- name: Run Unit Tests | |
run: yarn test |