mirror of
https://github.com/axllent/mailpit.git
synced 2026-06-27 22:46:09 +00:00
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
name: Tests (rqlite)
|
|
on:
|
|
pull_request:
|
|
branches: [ develop, 'feature/**' ]
|
|
push:
|
|
branches: [ develop, 'feature/**' ]
|
|
|
|
jobs:
|
|
test-rqlite:
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
rqlite:
|
|
image: rqlite/rqlite:latest
|
|
ports:
|
|
- 4001:4001
|
|
env:
|
|
# the HTTP address the rqlite node should advertise
|
|
HTTP_ADV_ADDR: "localhost:4001"
|
|
steps:
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
with:
|
|
persist-credentials: false
|
|
- name: Setup Go
|
|
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
|
with:
|
|
go-version: 'stable'
|
|
cache-dependency-path: "**/*.sum"
|
|
- run: go test -p 1 ./internal/storage ./server ./internal/smtpd ./internal/pop3 ./internal/tools ./internal/html2text ./internal/htmlcheck ./internal/linkcheck ./internal/healthcheck -v
|
|
env:
|
|
# set Mailpit to use the rqlite service container
|
|
MP_DATABASE: "http://localhost:4001"
|