From 4bf0dd2cdf2e70c6e5c1846fdd8c6ee901e733c0 Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Sun, 7 Dec 2025 12:36:24 +0000 Subject: [PATCH] Update the autoupdate workflow --- .github/workflows/autoupdate.yaml | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/.github/workflows/autoupdate.yaml b/.github/workflows/autoupdate.yaml index b6fd127..90c3c53 100644 --- a/.github/workflows/autoupdate.yaml +++ b/.github/workflows/autoupdate.yaml @@ -10,11 +10,15 @@ permissions: actions: write jobs: - prepare: + autoupdate: + name: Update dependencies and test runs-on: ubuntu-latest + steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup Go uses: actions/setup-go@v5 @@ -22,30 +26,13 @@ jobs: go-version: "1.24" cache: true - - name: Install 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 + - name: Update dependencies run: | + go get -u ./... go mod tidy - go get -u -v ./... - name: Run tests - run: CI_RUN=${CI} go test -v ./... - - - name: Configure git safe directory - run: git config --global --add safe.directory /__w/lolcathost/lolcathost + run: go test -race -cover ./... - name: Commit changes id: auto-commit