From 54d32f91845bbecf9a334f61a201ebfa1a1d70d6 Mon Sep 17 00:00:00 2001 From: Dennis Wielepsky Date: Tue, 24 Sep 2024 18:47:20 +0200 Subject: [PATCH] add verification steps on ci --- .github/workflows/test.yml | 20 ++++++++++++++++++++ .task/checksum/install | 1 + Taskfile.yml | 10 ++++++++++ 3 files changed, 31 insertions(+) create mode 100644 .github/workflows/test.yml create mode 100644 .task/checksum/install diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5a2ae96 --- /dev/null +++ b/.github/workflows/test.yml @@ -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 diff --git a/.task/checksum/install b/.task/checksum/install new file mode 100644 index 0000000..a38070b --- /dev/null +++ b/.task/checksum/install @@ -0,0 +1 @@ +3b53cb56dce578d56ea3fd520593dbbf diff --git a/Taskfile.yml b/Taskfile.yml index 3d77063..da45b74 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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