Skip to content

Commit

Permalink
Merge pull request #81 from ioBroker/feature/77-use-repochecker
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleSamSwiss authored Jan 17, 2025
2 parents 0e4218a + 8dce01a commit 70a3127
Show file tree
Hide file tree
Showing 12 changed files with 458 additions and 134 deletions.
31 changes: 31 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/express/backend"
schedule:
interval: daily
time: "04:00"
timezone: Europe/Berlin
allow:
- dependency-name: "@iobroker/create-adapter"
dependency-type: "all"
- dependency-name: "@iobroker/repochecker"
dependency-type: "all"
open-pull-requests-limit: 20
assignees:
- UncleSamSwiss
versioning-strategy: increase

- package-ecosystem: npm
directory: "/express/frontend"
schedule:
interval: daily
time: "04:00"
timezone: Europe/Berlin
allow:
- dependency-name: "@iobroker/create-adapter"
dependency-type: "all"
open-pull-requests-limit: 20
assignees:
- UncleSamSwiss
versioning-strategy: increase
62 changes: 31 additions & 31 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: "51 13 * * 1"
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: "51 13 * * 1"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ javascript ]
strategy:
fail-fast: false
matrix:
language: [javascript]

steps:
- name: Checkout
uses: actions/checkout@v3
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
56 changes: 28 additions & 28 deletions .github/workflows/publish-docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
name: Publish Docker Image

on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
push:
branches:
- "main"
pull_request:
branches:
- "main"

jobs:
docker:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v2
docker:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Write Git Info to Code
run: |
echo "export const GIT_COMMIT = \"$(git rev-parse --short HEAD)\", GIT_BRANCH = \"$(git branch --show-current)\";" > express/backend/src/version.ts
echo "export const GIT_COMMIT = \"$(git rev-parse --short HEAD)\", GIT_BRANCH = \"$(git branch --show-current)\";" > express/frontend/src/version.ts
- name: Write Git Info to Code
run: |
echo "export const GIT_COMMIT = \"$(git rev-parse --short HEAD)\", GIT_BRANCH = \"$(git branch --show-current)\";" > express/backend/src/version.ts
echo "export const GIT_COMMIT = \"$(git rev-parse --short HEAD)\", GIT_BRANCH = \"$(git branch --show-current)\";" > express/frontend/src/version.ts
- name: Build and push
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: iobroker/dev-portal/express
path: ./express
tag_with_ref: true
tag_with_sha: true
- name: Build and push
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: iobroker/dev-portal/express
path: ./express
tag_with_ref: true
tag_with_sha: true
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
package.json
package-lock.json
**/build/
.github/**/*.yml
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"source.organizeImports": "explicit"
}
},
"cSpell.words": ["iobroker", "Weblate"],
"cSpell.words": ["iobroker", "repochecker", "Weblate"],
"editor.foldingImportsByDefault": true,
"editor.pasteAs.preferences": ["text.updateImports"]
}
Loading

0 comments on commit 70a3127

Please sign in to comment.