Skip to content

Commit

Permalink
Setup dependabot and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpens committed Oct 17, 2024
1 parent 00d8fc5 commit bc1450b
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2

updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
versioning-strategy: 'increase-if-necessary'
open-pull-requests-limit: 20
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches: [main]
pull_request:

jobs:
test:
name: Check
runs-on: ubuntu-latest

steps:
- name: Check out branch
uses: actions/checkout@v4

- name: Cache .npm
uses: actions/cache@v4
env:
cache-name: cache-dot-npm
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}

- name: Set up Node.js version
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: npm ci

- name: Run Check
run: npm run check
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"check": "astro check",
"preview": "astro preview",
"astro": "astro"
},
Expand Down

0 comments on commit bc1450b

Please sign in to comment.