-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 935 Bytes
/
tests.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
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: bitnami/postgresql:13.16.0
env:
POSTGRES_USER: docker
POSTGRES_PASSWORD: docker
POSTGRES_DB: event-booster-test
ports:
- 5433:5432
redis:
image: bitnami/redis:latest
env:
REDIS_PASSWORD: redis
ports:
- 6379:6379
steps:
- uses: actions/checkout@v2
- name: Install Bun
run: |
curl -fsSL https://bun.sh/install | bash
echo "$HOME/.bun/bin" >> $GITHUB_PATH
- name: Install dependencies
run: bun install
- name: Run migrations
run: bun run pretest
- name: Execute tests
run: bun run test
- name: Execute test coverage
run: bun run test:coverage