Initialize a Discord Bot Application #12
Workflow file for this run
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: Build | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
build-library: | |
name: Build Library | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Project | |
uses: actions/[email protected] | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version-file: .nvmrc | |
- name: Setup Yarn | |
uses: threeal/[email protected] | |
- name: Check Formatting | |
run: | | |
yarn format | |
git diff --exit-code HEAD | |
- name: Check Lint | |
run: yarn lint | |
- name: Build Library | |
run: yarn build | |
- name: Test Library | |
run: yarn test |