ci: add linter

This commit is contained in:
2026-01-03 17:57:11 +08:00
parent a6a83f8d9f
commit a8b3a34db7
5 changed files with 65 additions and 8 deletions

View File

@@ -6,6 +6,7 @@ jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-ci
container:
image: ubuntu:ci
volumes:
- data:/var/data
- deploy:/var/deploy
@@ -15,7 +16,7 @@ jobs:
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 1
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
@@ -26,6 +27,8 @@ jobs:
- name: Check go version
run: |
go version
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
- name: Tests
run: |
cd ${{ gitea.workspace }}