ci: add linter
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user