-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (51 loc) · 1.31 KB
/
pr-test.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Test PR
on:
pull_request:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
DISCORD_BOT_TOKEN: '1234567890'
DISCORD_TEAM_ROLE_ID: '706087016613281842'
DISCORD_CUBYX_GUILD: '665917454626717746'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install bun for faster builds
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: npm ci
- name: Build Svelte app
run: bun run build
- name: Test Svelte app
run: bun run test
eslint:
name: Check & ESLint
runs-on: ubuntu-latest
env:
DISCORD_BOT_TOKEN: '1234567890'
DISCORD_TEAM_ROLE_ID: '706087016613281842'
DISCORD_CUBYX_GUILD: '665917454626717746'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install bun for faster builds
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: npm ci
- name: Svelte Check
run: bun run check
- name: Run ESLint
run: bun run lint