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