Skip to content

Update Go

Update Go #2

Workflow file for this run

name: Update Go
on:
schedule:
- cron: "0 2 1 * *"
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
token: ${{ secrets.MAINTENANCE_TOKEN }}
fetch-depth: 0
- name: Run Common Setup
uses: ./.github/actions/setup
with:
go-version: stable
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
- name: Install Qemu
run: sudo apt-get update && sudo apt-get install -y qemu-user
- name: Update Go dependencies
run: just update
- name: Format code
run: just fmt
- name: Run all tests
run: just test-all
- name: Commit updates
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: Update Go dependencies
commit_user_name: Maintenance Bob
commit_user_email: bob@archlinux.de
commit_author: Maintenance Bob <bob@archlinux.de>