mirror of
https://github.com/Dasharo/dcu.git
synced 2026-06-13 19:16:13 -07:00
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:
@@ -12,18 +12,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: build
|
- uses: arduino/setup-task@v2
|
||||||
uses: addnab/docker-run-action@v3
|
- run: task test
|
||||||
with:
|
env:
|
||||||
image: dannyben/bashly
|
TASK_X_REMOTE_TASKFILES: 1
|
||||||
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
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
*.rom
|
*.rom
|
||||||
*.bmp
|
*.bmp
|
||||||
test/data/*
|
test/data/*
|
||||||
|
.task
|
||||||
|
.claude
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user