-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.03 KB
/
ci.yml
File metadata and controls
51 lines (41 loc) · 1.03 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
50
51
name: CI
on:
pull_request:
push:
branches: [main]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install
run: npm ci
- name: Typecheck
run: npm run type-check
- name: Test
run: npm test
smoke-v2-live:
runs-on: ubuntu-latest
needs: validate
if: ${{ secrets.MINDSPRING_BASE_URL != '' && secrets.MINDSPRING_API_KEY != '' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install
run: npm ci
- name: Run v2 smoke against deployed worker
env:
MINDSPRING_BASE_URL: ${{ secrets.MINDSPRING_BASE_URL }}
MINDSPRING_API_KEY: ${{ secrets.MINDSPRING_API_KEY }}
run: npm run smoke:v2