1
0
mirror of https://github.com/insomniafi/insomniaid-bot.git synced 2025-07-07 05:30:50 +00:00

Initial Commit

This commit is contained in:
Christer Warén
2024-11-01 01:27:30 +02:00
commit a013466077
13 changed files with 219 additions and 0 deletions

19
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,19 @@
version: 2
updates:
# GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
target-branch: "develop"
labels:
- "dependencies"
# npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
target-branch: "develop"
labels:
- "dependencies"

13
.github/labeler.yml vendored Normal file
View File

@ -0,0 +1,13 @@
dependencies:
- changed-files:
- any-glob-to-any-file:
- package-lock.json
documentation:
- changed-files:
- any-glob-to-any-file:
- README.md
- SECURITY.md
- CONTRIBUTING.md
- LICENSE
- .env_example

View File

@ -0,0 +1,20 @@
name: Dependabot Auto-Merge
on:
pull_request_target:
branches: [ develop ]
permissions:
pull-requests: write
contents: write
jobs:
dependabot:
name: Dependabot Auto-Merge
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

22
.github/workflows/docker-build.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Docker Build
on:
pull_request:
types: [opened, synchronize, reopened, assigned, edited, ready_for_review]
push:
workflow_dispatch:
jobs:
buildx:
name: Docker Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3.7.1
id: buildx
with:
install: true
- name: Build
run: docker build . # will run buildx

17
.github/workflows/labeler.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Labeler
on: [pull_request]
jobs:
label:
name: Labeler
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true

22
.github/workflows/typescript-build.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: TypeScript Build
on:
pull_request:
types: [opened, synchronize, reopened, assigned, edited, ready_for_review]
push:
workflow_dispatch:
jobs:
tsc:
name: TypeScript Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install node v22
uses: actions/setup-node@v4
with:
node-version: 22
- name: npm install
run: npm install
- name: tsc
uses: icrawl/action-tsc@v1