-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 880 Bytes
/
test.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
39
40
name: Run tests
on:
pull_request:
merge_group:
jobs:
# Label of the container job
container-job:
runs-on: ubuntu-latest
# Service containers to run with `container-job`
services:
# Label used to access the service container
couchdb:
# Docker Hub image
image: couchdb:3.3.2
# Provide user and password for couchdb
env:
COUCHDB_USER: admin
COUCHDB_PASSWORD: password123
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Start server by running docker-compose
run: make up
shell: bash
- name: Call tests
run: make test
shell: bash
- name: Install pre-commit
run: pip install pre-commit
shell: bash
- name: Run pre-commit on all files
run: pre-commit run -a -v
shell: bash