Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
cooldown:
default-days: 7
open-pull-requests-limit: 10

- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
cooldown:
default-days: 7
12 changes: 7 additions & 5 deletions .github/workflows/check-adapters.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Check Adapters

permissions:
contents: write
contents: read

on:
push:
Expand All @@ -15,9 +15,11 @@ on:
jobs:
run-checks:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
submodules: false
fetch-depth: 0
Expand All @@ -44,9 +46,9 @@ jobs:
git diff --quiet && git diff --staged --quiet || (git commit -m "Reset euler-interfaces submodule" && git push)

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: "20"
node-version-file: .nvmrc
cache: "npm"

- name: Generate .env file
Expand Down Expand Up @@ -78,7 +80,7 @@ jobs:
# 🆕 NEW STEP: Sync /data folder to AWS S3
- name: Sync data to S3
if: success() # only run if all previous steps passed
uses: jakejarvis/s3-sync-action@v0.5.1
uses: jakejarvis/s3-sync-action@be0c4ab89158cac4278689ebedd8407dd5f35a83 # v0.5.1
with:
args: --follow-symlinks --delete
env:
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:
branches: [master]
pull_request:

permissions:
contents: read

jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version-file: .nvmrc
cache: npm

- name: Install (frozen lockfile)
run: npm ci

- name: Lockfile-drift check
run: |
set -euo pipefail
base="${{ github.event.pull_request.base.sha || 'HEAD~1' }}"
lock_changed=$(git diff --name-only "$base" HEAD -- package-lock.json | wc -l | tr -d ' ')
manifest_changed=$(git diff --name-only "$base" HEAD -- 'package.json' | wc -l | tr -d ' ')
if [ "$lock_changed" != "0" ] && [ "$manifest_changed" = "0" ]; then
echo "::error::Lockfile changed with no matching package.json change — refusing to merge."
exit 1
fi

- name: Audit (high+)
run: npm audit --audit-level=high
5 changes: 5 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
audit-level=high
engine-strict=true
save-exact=true
fund=false
min-release-age=7
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
Loading
Loading