Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 4 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*.rom
*.bmp
test/data/*
.task
.claude
28 changes: 28 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -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