-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (56 loc) · 1.37 KB
/
test-lint.yml
File metadata and controls
67 lines (56 loc) · 1.37 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Test and lint
on:
push
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.4.0
- name: Install dependencies
run: |
deno install --allow-scripts --reload
- name: Lint
run: deno lint
- name: Fmt check
run: deno fmt --check
test:
runs-on: ubuntu-latest
services:
postgres:
image: pgvector/pgvector:pg17
env:
POSTGRES_PASSWORD: password
POSTGRES_USER: user
POSTGRES_DB: core
ports:
- 5432:5432
stripe-mock:
image: stripe/stripe-mock:latest
ports:
- 12111:12111
- 12112:12112
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.4.0
- name: Install dependencies
run: |
deno install --allow-scripts --reload
- uses: fsouza/fake-gcs-action@v0.4.1
with:
version: "latest"
backend: memory
public-host: "localhost:4443"
scheme: http
- name: Run migrations
run: deno task db:migrate
- name: Test
run: deno task test