mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
chore(project): re-enable dependabot
This commit is contained in:
committed by
Łukasz Mierzwa
parent
8be255b9ad
commit
631365e99b
51
.github/workflows/go-maintenance.yml
vendored
Normal file
51
.github/workflows/go-maintenance.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
name: Maintenance
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 12 * * 1"
|
||||
|
||||
jobs:
|
||||
go-mod-upgrades:
|
||||
name: Upgrade all Go modules
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.25.7
|
||||
cache: false
|
||||
|
||||
- name: Mock web assets
|
||||
run: make mock-assets
|
||||
|
||||
- name: Upgrade all Go modules
|
||||
run: go get -u ./...
|
||||
|
||||
- name: Run go mod tidy
|
||||
run: go mod tidy
|
||||
|
||||
- name: Create Pull Request
|
||||
id: cpr
|
||||
uses: peter-evans/create-pull-request@v7.0.6
|
||||
with:
|
||||
token: ${{ secrets.GH_REPO_TOKEN }}
|
||||
author: "Łukasz Mierzwa <l.mierzwa@gmail.com>"
|
||||
commit-message: "chore(backend): upgrade all Go modules"
|
||||
branch: go-mod-upgrades
|
||||
delete-branch: true
|
||||
title: "chore(backend): upgrade all Go modules"
|
||||
|
||||
- name: Check outputs
|
||||
run: |
|
||||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
||||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
||||
|
||||
- name: Enable Pull Request Automerge
|
||||
if: steps.cpr.outputs.pull-request-operation == 'created'
|
||||
run: gh pr merge --merge --auto go-mod-upgrades
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
|
||||
2
.github/workflows/go-mod-tidy.yml
vendored
2
.github/workflows/go-mod-tidy.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.25.3
|
||||
go-version: 1.25.7
|
||||
cache: false
|
||||
|
||||
- name: Run go mod tidy
|
||||
|
||||
50
.github/workflows/node-maintenance.yml
vendored
Normal file
50
.github/workflows/node-maintenance.yml
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
name: Maintenance
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 12 * * 2"
|
||||
|
||||
jobs:
|
||||
npm-upgrades:
|
||||
name: Regenerate package-lock.json
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Node JS
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 23.5.0
|
||||
|
||||
- name: Regenerate package-lock.json
|
||||
run: make -C ui npm-upgrade
|
||||
|
||||
- name: Rebuild react app
|
||||
run: make -C ui build
|
||||
|
||||
- name: Update snapshots
|
||||
run: make -C ui update-snapshots
|
||||
|
||||
- name: Create Pull Request
|
||||
id: cpr
|
||||
uses: peter-evans/create-pull-request@v7.0.6
|
||||
with:
|
||||
token: ${{ secrets.GH_REPO_TOKEN }}
|
||||
author: "Łukasz Mierzwa <l.mierzwa@gmail.com>"
|
||||
commit-message: "chore(ui): upgrade all 3rd party dependencies"
|
||||
branch: npm-upgrades
|
||||
delete-branch: true
|
||||
title: "chore(ui): upgrade all 3rd party dependencies"
|
||||
|
||||
- name: Check outputs
|
||||
run: |
|
||||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
||||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
||||
|
||||
- name: Enable Pull Request Automerge
|
||||
if: steps.cpr.outputs.pull-request-operation == 'created'
|
||||
run: gh pr merge --merge --auto npm-upgrades
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
|
||||
2
.github/workflows/node-version.yml
vendored
2
.github/workflows/node-version.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
||||
- name: Set up Node JS
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24.11.0
|
||||
node-version: 24.13.0
|
||||
|
||||
- name: Regenerate ui package-lock.json
|
||||
run: cd ui && npm i
|
||||
|
||||
22
.github/workflows/test.yml
vendored
22
.github/workflows/test.yml
vendored
@@ -22,7 +22,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.25.3
|
||||
go-version: 1.25.7
|
||||
cache: false
|
||||
|
||||
- name: Restore cache
|
||||
@@ -62,7 +62,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.25.3
|
||||
go-version: 1.25.7
|
||||
cache: false
|
||||
|
||||
- name: Restore cache
|
||||
@@ -100,7 +100,7 @@ jobs:
|
||||
- name: Set up Node JS
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24.11.0
|
||||
node-version: 24.13.0
|
||||
cache: "npm"
|
||||
cache-dependency-path: "ui/package-lock.json"
|
||||
|
||||
@@ -126,7 +126,7 @@ jobs:
|
||||
- name: Set up Node JS
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24.11.0
|
||||
node-version: 24.13.0
|
||||
cache: "npm"
|
||||
cache-dependency-path: "ui/package-lock.json"
|
||||
|
||||
@@ -143,7 +143,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.25.3
|
||||
go-version: 1.25.7
|
||||
cache: false
|
||||
|
||||
- name: Format Go code
|
||||
@@ -162,7 +162,7 @@ jobs:
|
||||
- name: Set up Node JS
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24.11.0
|
||||
node-version: 24.13.0
|
||||
cache: "npm"
|
||||
cache-dependency-path: "ui/package-lock.json"
|
||||
|
||||
@@ -195,7 +195,7 @@ jobs:
|
||||
- name: Set up Node JS
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24.11.0
|
||||
node-version: 24.13.0
|
||||
cache: "npm"
|
||||
cache-dependency-path: "ui/package-lock.json"
|
||||
|
||||
@@ -299,7 +299,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.25.3
|
||||
go-version: 1.25.7
|
||||
cache: false
|
||||
|
||||
- name: Restore cache
|
||||
@@ -351,7 +351,7 @@ jobs:
|
||||
- name: Set up Node JS
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24.11.0
|
||||
node-version: 24.13.0
|
||||
cache: "npm"
|
||||
cache-dependency-path: "ui/package-lock.json"
|
||||
|
||||
@@ -375,7 +375,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.25.3
|
||||
go-version: 1.25.7
|
||||
cache: false
|
||||
|
||||
- name: Cache Go
|
||||
@@ -403,7 +403,7 @@ jobs:
|
||||
- name: Set up Node JS
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24.11.0
|
||||
node-version: 24.13.0
|
||||
cache: "npm"
|
||||
cache-dependency-path: "ui/package-lock.json"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user