Skip to content

Merge pull request #76 from druidfi/mailpit #206

Merge pull request #76 from druidfi/mailpit

Merge pull request #76 from druidfi/mailpit #206

Workflow file for this run

name: Tests
on: [push]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04, ubuntu-22.04, macos-12 ]
runs-on: ${{ matrix.os }}
steps:
- name: Setup Linux requirements
run: |
sudo apt update --yes
sudo apt install libnss3-tools
if: runner.os == 'Linux'
- name: Setup macOS requirements
run: |
brew install docker docker-compose mkcert nss
mkdir -p ~/.docker/cli-plugins
ln -sfn /usr/local/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose
colima start
sudo security authorizationdb write com.apple.trust-settings.admin allow
if: runner.os == 'macOS'
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Show debug info
run: |
make debug
make ping
- name: Start up Stonehenge
run: make up
- name: Ping docker.so should resolve to 127.0.0.1 now
run: make ping
- name: Check that DNS works when curling Google. Expecting HTTP/2 200
run: curl -Is https://www.google.com | head -1
- name: Check if Traefik can be accessed from traefik.docker.so
run: |
printf "CURL traefik.docker.so for checking access starts"
until curl -s "https://traefik.docker.so/dashboard/#/" | grep -o "<title>Traefik[^<]*" | tail -c+8; do true; done > /dev/null
printf "CURL traefik.docker.so for checking access ends"
- name: Tear down Stonehenge
run: make down