-
Notifications
You must be signed in to change notification settings - Fork 11
46 lines (43 loc) · 1.68 KB
/
Copy pathupdate-go.yml
File metadata and controls
46 lines (43 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Update Go
on:
schedule:
- cron: "0 2 * * 1"
workflow_dispatch:
permissions:
contents: read
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1
with:
token: ${{ secrets.MAINTENANCE_TOKEN }}
- name: Run Common Setup
uses: ./.github/actions/setup
with:
go-version: stable
- name: Resolve golangci-lint version
id: golangci-lint-version
run: echo "version=$(go list -m -f '{{.Version}}' github.com/golangci/golangci-lint/v2@latest)" >> "$GITHUB_OUTPUT"
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@${{ steps.golangci-lint-version.outputs.version }}
- name: Update Go dependencies
run: just update-go
- name: Build Templates
run: just build-templates
- name: Format code
run: just fmt
- name: Run Linter
run: just lint
- name: Run Tests
run: just test
- name: Build Application
run: just build
- name: Commit updates
uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d #v7.2.0
with:
commit_message: Update Go dependencies
commit_user_name: Maintenance Bob
commit_user_email: bob@archlinux.de
commit_author: Maintenance Bob <bob@archlinux.de>