Merge branch 'master' into ai-testing

This commit is contained in:
2026-04-06 00:08:52 +02:00
8 changed files with 561 additions and 554 deletions

View File

@@ -1,21 +1,19 @@
name: Main
name: Release
on:
push:
tags:
- 'v*.*.*'
- "v*.*.*"
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- uses: docker/setup-qemu-action@v4
- uses: docker/setup-buildx-action@v4
- name: Docker Labels
id: meta
uses: crazy-max/ghaction-docker-meta@v4
uses: docker/metadata-action@v6
with:
images: cupcakearmy/autorestic
tags: |
@@ -23,12 +21,12 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
@@ -37,10 +35,9 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '^1.21'
- uses: actions/checkout@v6
- uses: jdx/mise-action@v3
- run: mise run build
- name: Build
run: go run build/build.go
- name: Release

View File

@@ -2,23 +2,28 @@ name: CI
on:
pull_request:
push:
branches: [master]
branches:
- main
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
MISE_EXPERIMENTAL: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '^1.21'
- run: go test -v ./...
- uses: actions/checkout@v6
- uses: jdx/mise-action@v3
- run: mise run test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '^1.21'
- run: go build -v .
- uses: actions/checkout@v6
- uses: jdx/mise-action@v3
- run: mise run build

View File

@@ -1 +1 @@
v22.7.0
v24

2
docs/mise.toml Normal file
View File

@@ -0,0 +1,2 @@
[settings]
idiomatic_version_file_enable_tools = ["node", "pnpm"]

View File

@@ -5,11 +5,11 @@
"start": "NEXT_TELEMETRY_DISABLED=1 next start"
},
"dependencies": {
"next": "^14.2.7",
"next": "^14.2.35",
"nextra": "^2.13.4",
"nextra-theme-docs": "^2.13.4",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"packageManager": "pnpm@9.9.0"
"packageManager": "pnpm@10.33.0"
}

1040
docs/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

2
go.mod
View File

@@ -1,6 +1,6 @@
module github.com/cupcakearmy/autorestic
go 1.21
go 1.26.1
require (
github.com/blang/semver/v4 v4.0.0

View File

@@ -2,12 +2,13 @@
go = "latest"
restic = "latest"
[tasks.test]
run = "go test -v ./..."
[tasks]
build = { description = "Build the project", run = "go build -v ." }
[tasks.coverage]
run = "go test -coverprofile=coverage.out ./... && go tool cover -func=coverage.out && go tool cover -html=coverage.out -o coverage.html"
description = "Generate coverage report"
test = { description = "Run tests", run = "go test -v ./..." }
[tasks.clean]
run = "rm -f coverage.out coverage.html"
coverage = { description = "Generate coverage report", run = "go test -coverprofile=coverage.out ./... && go tool cover -func=coverage.out && go tool cover -html=coverage.out -o coverage.html", depends = [
"test"
] }
clean = { run = "rm -f coverage.*", description = "Clean up coverage files" }