-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 893 Bytes
/
deploy.yaml
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
# Simple workflow for deploying static content to GitHub Pages
name: Lint & Test
on:
pull_request:
push:
branches: ['main']
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Run linters
run: npm run lint
- name: Run unit tests
run: npm run test
env:
DATABASE_URL: ${{ vars.DATABASE_URL }}
PORT: ${{ vars.PORT }}
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
DISCORD_CHANNEL_ID: ${{ secrets.DISCORD_CHANNEL_ID }}
DISCORD_SERVER_ID: ${{ secrets.DISCORD_SERVER_ID }}
GIPHY_API_KEY: ${{ secrets.GIPHY_API_KEY }}