mirror of
https://github.com/mudler/LocalAI.git
synced 2026-02-06 20:54:37 -05:00
Compare commits
2 Commits
llama_cpp/
...
ci/static-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c28e8ca697 | ||
|
|
ecaaff8f03 |
70
.github/workflows/static-check.yml
vendored
Normal file
70
.github/workflows/static-check.yml
vendored
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
name: static check
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
imports:
|
||||||
|
name: Imports
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: check
|
||||||
|
uses: danhunsaker/golang-github-actions@v1.3.0
|
||||||
|
with:
|
||||||
|
run: imports
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
errcheck:
|
||||||
|
name: Errcheck
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: check
|
||||||
|
uses: danhunsaker/golang-github-actions@v1.3.0
|
||||||
|
with:
|
||||||
|
run: errcheck
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
lint:
|
||||||
|
name: Lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: check
|
||||||
|
uses: danhunsaker/golang-github-actions@v1.3.0
|
||||||
|
with:
|
||||||
|
run: lint
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
shadow:
|
||||||
|
name: Shadow
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: check
|
||||||
|
uses: danhunsaker/golang-github-actions@v1.3.0
|
||||||
|
with:
|
||||||
|
run: shadow
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
staticcheck:
|
||||||
|
name: StaticCheck
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: check
|
||||||
|
uses: danhunsaker/golang-github-actions@v1.3.0
|
||||||
|
with:
|
||||||
|
run: staticcheck
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
sec:
|
||||||
|
name: Sec
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: check
|
||||||
|
uses: danhunsaker/golang-github-actions@v1.3.0
|
||||||
|
with:
|
||||||
|
run: sec
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
flags: "-exclude=G104"
|
||||||
Reference in New Issue
Block a user