ci: add ci flow
This commit is contained in:
28
.gitea/workflows/CI.yaml
Normal file
28
.gitea/workflows/CI.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: CI
|
||||
|
||||
on: [push, workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
container:
|
||||
image: gas
|
||||
volumes:
|
||||
- woodpecker-gocache:/go-cache-volume
|
||||
env:
|
||||
GOPATH: /go-cache-volume
|
||||
GOCACHE: /go-cache-volume/build-cache
|
||||
GOLANGCI_LINT_CACHE: /go-cache-volume/golangci-lint
|
||||
steps:
|
||||
- name: checkout
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: gocheckout
|
||||
|
||||
- name: test
|
||||
run: ops/test.sh
|
||||
|
||||
- name: lint
|
||||
run: ops/lint.sh
|
||||
|
||||
- name: lint shell
|
||||
run: find ops/ -name "*.sh" | xargs shellcheck
|
||||
Reference in New Issue
Block a user