mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2026-04-06 13:49:18 +00:00
mise (#474)
This commit is contained in:
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
@@ -1,21 +1,19 @@
|
|||||||
name: Main
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*.*.*'
|
- "v*.*.*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set up QEMU
|
- uses: docker/setup-qemu-action@v4
|
||||||
uses: docker/setup-qemu-action@v2
|
- uses: docker/setup-buildx-action@v4
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v2
|
|
||||||
- name: Docker Labels
|
- name: Docker Labels
|
||||||
id: meta
|
id: meta
|
||||||
uses: crazy-max/ghaction-docker-meta@v4
|
uses: docker/metadata-action@v6
|
||||||
with:
|
with:
|
||||||
images: cupcakearmy/autorestic
|
images: cupcakearmy/autorestic
|
||||||
tags: |
|
tags: |
|
||||||
@@ -23,12 +21,12 @@ jobs:
|
|||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=semver,pattern={{major}}
|
type=semver,pattern={{major}}
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v4
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
@@ -37,10 +35,9 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v6
|
||||||
- uses: actions/setup-go@v3
|
- uses: jdx/mise-action@v3
|
||||||
with:
|
- run: mise run build
|
||||||
go-version: '^1.21'
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go run build/build.go
|
run: go run build/build.go
|
||||||
- name: Release
|
- name: Release
|
||||||
|
|||||||
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
@@ -2,23 +2,28 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
env:
|
||||||
|
MISE_EXPERIMENTAL: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v6
|
||||||
- uses: actions/setup-go@v3
|
- uses: jdx/mise-action@v3
|
||||||
with:
|
- run: mise run test
|
||||||
go-version: '^1.21'
|
|
||||||
- run: go test -v ./...
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v6
|
||||||
- uses: actions/setup-go@v3
|
- uses: jdx/mise-action@v3
|
||||||
with:
|
- run: mise run build
|
||||||
go-version: '^1.21'
|
|
||||||
- run: go build -v .
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
v22.7.0
|
v24
|
||||||
|
|||||||
2
docs/mise.toml
Normal file
2
docs/mise.toml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[settings]
|
||||||
|
idiomatic_version_file_enable_tools = ["node", "pnpm"]
|
||||||
@@ -5,11 +5,11 @@
|
|||||||
"start": "NEXT_TELEMETRY_DISABLED=1 next start"
|
"start": "NEXT_TELEMETRY_DISABLED=1 next start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "^14.2.7",
|
"next": "^14.2.35",
|
||||||
"nextra": "^2.13.4",
|
"nextra": "^2.13.4",
|
||||||
"nextra-theme-docs": "^2.13.4",
|
"nextra-theme-docs": "^2.13.4",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-dom": "^18.3.1"
|
"react-dom": "^18.3.1"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@9.9.0"
|
"packageManager": "pnpm@10.33.0"
|
||||||
}
|
}
|
||||||
|
|||||||
1040
docs/pnpm-lock.yaml
generated
1040
docs/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
2
go.mod
2
go.mod
@@ -1,6 +1,6 @@
|
|||||||
module github.com/cupcakearmy/autorestic
|
module github.com/cupcakearmy/autorestic
|
||||||
|
|
||||||
go 1.21
|
go 1.26.1
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/blang/semver/v4 v4.0.0
|
github.com/blang/semver/v4 v4.0.0
|
||||||
|
|||||||
14
mise.toml
Normal file
14
mise.toml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
[tools]
|
||||||
|
go = "latest"
|
||||||
|
restic = "latest"
|
||||||
|
|
||||||
|
[tasks]
|
||||||
|
build = { description = "Build the project", run = "go build -v ." }
|
||||||
|
|
||||||
|
test = { description = "Run tests", run = "go test -v ./..." }
|
||||||
|
|
||||||
|
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" }
|
||||||
Reference in New Issue
Block a user