yaml is a thing
This commit is contained in:
parent
e162ec5f41
commit
15bb1af218
|
@ -1,4 +1,4 @@
|
||||||
name: Unit Tests with cargo
|
name: Unit Tests with docker compose and cargo
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -9,16 +9,16 @@ jobs:
|
||||||
- /data/.cache/act:/data/.cache/act
|
- /data/.cache/act:/data/.cache/act
|
||||||
- /var/lib/docker/image:/var/lib/docker/image
|
- /var/lib/docker/image:/var/lib/docker/image
|
||||||
- /var/lib/docker/overlay2:/var/lib/docker/overlay2
|
- /var/lib/docker/overlay2:/var/lib/docker/overlay2
|
||||||
steps:
|
steps:
|
||||||
- name: Starting docker daemon
|
- name: Starting docker daemon
|
||||||
run: docker-init -- dockerd --host=unix:///var/run/docker.sock &
|
run: docker-init -- dockerd --host=unix:///var/run/docker.sock &
|
||||||
- name: Installing necessary packages
|
- name: Installing necessary packages
|
||||||
run: apk add nodejs git curl bash
|
run: apk add nodejs git curl bash
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Get access token from secret
|
- name: Get access token from secret
|
||||||
run: echo "${{ secrets.MASTODON_SECRET }}" > mastodon-data.toml
|
run: echo "${{ secrets.MASTODON_SECRET }}" > mastodon-data.toml
|
||||||
- name: Check code
|
- name: Check code
|
||||||
run: cargo check
|
run: cargo check
|
||||||
- name: Run tests on docker
|
- name: Run tests on docker
|
||||||
run: docker compose down -v && docker compose run bot t
|
run: docker compose down -v && docker compose run bot t
|
Loading…
Reference in New Issue