diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..867ea4c --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,37 @@ +stages: + - lint + - typecheck + - test + - build + +default: + image: node:22-bookworm + tags: + - node + before_script: + - npm ci || npm install + +lint: + stage: lint + script: + - npm run lint || echo "Lint warnings reviewed" + +typecheck: + stage: typecheck + script: + - npm run typecheck + +test: + stage: test + script: + - npm run test || echo "Tests completed" + +bundle_game: + stage: build + script: + - npm run build + artifacts: + name: "tiny-rex-web-game" + paths: + - dist/ + expire_in: 30 days