2024-02-23 07:14:20 +00:00
|
|
|
name: Unit Tests with docker compose and cargo
|
2024-11-29 18:07:16 +00:00
|
|
|
on: [push]
|
2024-02-23 07:14:20 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
unit-test:
|
|
|
|
container:
|
|
|
|
image: docker:dind
|
|
|
|
volumes:
|
|
|
|
- /data/.cache/act:/data/.cache/act
|
|
|
|
- /var/lib/docker/image:/var/lib/docker/image
|
|
|
|
- /var/lib/docker/overlay2:/var/lib/docker/overlay2
|
|
|
|
steps:
|
|
|
|
- name: Starting docker daemon
|
|
|
|
run: docker-init -- dockerd --host=unix:///var/run/docker.sock &
|
|
|
|
- name: Installing necessary packages
|
|
|
|
run: apk add nodejs git curl bash
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Get access token from secret
|
|
|
|
run: echo "${{ secrets.MASTODON_SECRET }}" > mastodon-data.toml
|
|
|
|
- name: Run tests on docker
|
2024-11-29 18:07:16 +00:00
|
|
|
run: docker compose down -v && docker compose run bot t
|