Update the autoupdate workflow

This commit is contained in:
2025-12-07 12:36:24 +00:00
parent 70ac227613
commit 4bf0dd2cdf
+8 -21
View File
@@ -10,11 +10,15 @@ permissions:
actions: write actions: write
jobs: jobs:
prepare: autoupdate:
name: Update dependencies and test
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
@@ -22,30 +26,13 @@ jobs:
go-version: "1.24" go-version: "1.24"
cache: true cache: true
- name: Install dependencies - name: Update dependencies
run: go get ./...
test:
needs: prepare
runs-on: ubuntu-latest
container: golang:1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: apt-get update && apt-get install -y ca-certificates make
- name: Tidy and update modules
run: | run: |
go get -u ./...
go mod tidy go mod tidy
go get -u -v ./...
- name: Run tests - name: Run tests
run: CI_RUN=${CI} go test -v ./... run: go test -race -cover ./...
- name: Configure git safe directory
run: git config --global --add safe.directory /__w/lolcathost/lolcathost
- name: Commit changes - name: Commit changes
id: auto-commit id: auto-commit