-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (45 loc) · 1.7 KB
/
ci.yml
File metadata and controls
49 lines (45 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/setup
- run: npm run build
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/setup
- run: npm run lint
# To enable CI failure notifications over Discord:
# - Right click on a channel in Discord and select "Edit Channel".
# - Click on "Integrations" on the left menu.
# - Click on the "Create Webhook" button.
# - Click on the box for the new webhook that was created.
# - Change the name to "GitHub".
# - Change the image to: https://github.com/IsaacScript/isaacscript/raw/main/misc/github.png
# - Click on the "Save Changes" button at the bottom.
# - Click on the "Copy Webhook URL" button.
# - Go to the main page for your repository on GitHub.
# - Click on the "Settings" tab near the top.
# - Click on "Secrets and variables" in the left menu.
# - Click on "Actions" from the dropdown list.
# - Click on the "New repository secret" button in the top right.
# - For the "Name" box, use "DISCORD_WEBHOOK" (without the quotes).
# - For the "Secret" box, paste in the URL that was copied in the "Copy Webhook URL" step. (The
# pasted URL should not have a "/github" suffix.)
# - Click on the "Add secret" button.
# - Delete this comment and uncomment the lines below.
#discord:
# name: Discord Failure Notification
# needs: [build, lint]
# if: failure()
# runs-on: ubuntu-latest
# steps:
# - uses: sarisia/actions-status-discord@v1
# with:
# webhook: ${{ secrets.DISCORD_WEBHOOK }}
# status: failure
# title: ""