From 17621f1945655ab07c3be20725747cfb07afc28c Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Mon, 4 Aug 2025 19:07:50 +0200 Subject: [PATCH] Add Dependabot configuration and CI workflow for npm package updates --- .github/dependabot.yml | 21 ++++++++++++++ .github/workflows/ci.yml | 61 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..476dbd2 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,21 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: "npm" # See documentation for possible values + directory: "/apps/infoalloggi/" # Location of package manifests + schedule: + interval: "daily" + #ignore: + # - dependency-name: "react" + # - dependency-name: "react-dom" + # - dependency-name: "@next/eslint-plugin-next" + # versions: [">=14.2.23"] + # - dependency-name: "next" + # versions: [">=14.2.23"] + # - dependency-name: "eslint-config-next" + # versions: [">=14.2.23"] + open-pull-requests-limit: 50 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9643522 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,61 @@ +name: CI + +on: [push, pull_request] + +env: + INTERNAL_BASE_URL: "http://web:3000" + PGHOST: "localhost" + POSTGRES_USER: "test" + POSTGRES_DB: "test" + POSTGRES_PASSWORD: "test" + PGPORT: 123 + BACKENDSERVER_URL: "https://fake.com" + NEXT_PUBLIC_BASE_URL: "https://fake.com" + STRIPE_SECRET_KEY: "string" + STRIPE_WEBHOOK_SECRET: "string" + NEXT_PUBLIC_STRIPE_PUBLIC_KEY: "string" + STRIPE_LIMITED_KEY: "string" + FIC_CLIENT_ID: "string" + FIC_ACCESS_TOKEN: "string" + FIC_COMPANY_ID: "string" + NEXT_TELEMETRY_DISABLED: 1 + ARUBA_USER: "string" + ARUBA_PASS: "string" + EXP_API_USER: "string" + EXP_API_PASS: "string" + TILES_URL: "keydb://string" + KEYDB_URL: "keydb://string" + JWT_SECRET: "335922ae" + SKIP_REDIS: "false" + + +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: apps/infoalloggi + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "npm" + + - name: Install Dependencies + run: npm install + + - name: Typecheck + run: npm run types + + - name: Lint + run: npm run lint + + - name: Print Environment Variable + run: echo $MY_ENV_VAR + + #- name: Run knip + # run: npx knip --no-exit-code