use taskfile for CI

Run locally via:
TASK_X_REMOTE_TASKFILES=1 task test

Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
This commit is contained in:
Maciej Pijanowski
2026-02-16 19:24:51 +01:00
parent 3b065bc4b6
commit d7b917d953
3 changed files with 34 additions and 15 deletions
+4 -15
View File
@@ -12,18 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: build
uses: addnab/docker-run-action@v3
with:
image: dannyben/bashly
options: --rm -v ${{ github.workspace }}:/app
run: bashly generate
- name: tests
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/dasharo/dasharo-sdk:v1.5.0
options: --rm -v ${{ github.workspace }}:/dcu
run: |
cd dcu
test/approve-ci
- uses: arduino/setup-task@v2
- run: task test
env:
TASK_X_REMOTE_TASKFILES: 1
+2
View File
@@ -1,3 +1,5 @@
*.rom
*.bmp
test/data/*
.task
.claude
+28
View File
@@ -0,0 +1,28 @@
version: '3'
includes:
docker:
taskfile: https://raw.githubusercontent.com/3mdeb/taskfiles/fe705d9f1438e9da2ed5a6f1622bc1ba6f1d9f8e/docker.yml
checksum: e7414f0ebce7fcaab587d1bf5387c4f32bee952bf97de9c30b9075c609608b54
tasks:
build:
desc: Generate CLI using bashly
cmds:
- task: docker:run
vars:
IMAGE: dannyben/bashly:1.3.6
VOLUMES: "{{.PWD}}:/app"
WORKDIR: /app
COMMAND: bashly generate
test:
desc: Run approval tests
deps: [build]
cmds:
- task: docker:run
vars:
IMAGE: ghcr.io/dasharo/dasharo-sdk:v1.5.0
VOLUMES: "{{.PWD}}:/dcu"
WORKDIR: /dcu
COMMAND: test/approve-ci