Add Dependabot configuration and CI workflow for npm package updates
This commit is contained in:
parent
fb3f43f736
commit
17621f1945
2 changed files with 82 additions and 0 deletions
21
.github/dependabot.yml
vendored
Normal file
21
.github/dependabot.yml
vendored
Normal file
|
|
@ -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
|
||||||
61
.github/workflows/ci.yml
vendored
Normal file
61
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Reference in a new issue