From 15bb1af218e5c2f0878ee60278b481ef7eb07847 Mon Sep 17 00:00:00 2001 From: Alie Date: Sat, 17 Feb 2024 12:42:51 +0100 Subject: [PATCH] yaml is a thing --- .gitea/workflows/01_test.yaml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/01_test.yaml b/.gitea/workflows/01_test.yaml index 9953f27..5bb1572 100644 --- a/.gitea/workflows/01_test.yaml +++ b/.gitea/workflows/01_test.yaml @@ -1,4 +1,4 @@ -name: Unit Tests with cargo +name: Unit Tests with docker compose and cargo on: [push, pull_request] jobs: @@ -9,16 +9,16 @@ jobs: - /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: Check code - run: cargo check - - name: Run tests on docker - run: docker compose down -v && docker compose run bot t \ No newline at end of file + 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: Check code + run: cargo check + - name: Run tests on docker + run: docker compose down -v && docker compose run bot t \ No newline at end of file