Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zefir-git committed Jul 24, 2024
1 parent e348abd commit 2ebd497
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @prelude-music/maintainers
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 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/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
day: "monday"
time: "06:00"
reviewers:
- "prelude-music/maintainers"
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build
on:
pull_request:
types: [ opened, synchronize, reopened ]
push:
branches:
- "main"
jobs:
build:
name: "Build with Node.js v${{ matrix.node }}"
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
node:
- 20
steps:
- uses: actions/setup-node@v4
with:
node-version: "${{ matrix.node }}"
- uses: actions/checkout@v4
- name: "Cache node_modules"
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-v${{ matrix.node }}-
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build

0 comments on commit 2ebd497

Please sign in to comment.