add verification steps on ci

main
Dennis Wielepsky 2024-09-24 18:47:20 +02:00
parent ceabf4b3fc
commit 54d32f9184
3 changed files with 31 additions and 0 deletions

20
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Docker Image CI
env:
IMAGE_NAME: mirror-to-gitea
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts
- uses: arduino/setup-task@v2
- run: task world

1
.task/checksum/install Normal file
View File

@ -0,0 +1 @@
3b53cb56dce578d56ea3fd520593dbbf

View File

@ -4,6 +4,7 @@ tasks:
world:
aliases: [ default ]
cmds:
- task: install
- task: clean
- task: check
- task: test
@ -11,6 +12,15 @@ tasks:
run-local: ./run-local.sh
install:
cmd: npm ci
sources:
- package.json
- package-lock.json
status:
- test -d node_modules
clean: npm run clean
check: npm run check
test: npm run test