This commit is contained in:
38
.gitea/workflows/dasel.yml
Normal file
38
.gitea/workflows/dasel.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
name: Go Action
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'provider/dasel/**'
|
||||
- '.gitea/workflows/dasel.yml'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'provider/dasel/**'
|
||||
- '.gitea/workflows/dasel.yml'
|
||||
|
||||
jobs:
|
||||
goaction:
|
||||
runs-on: ubuntu-latest # Use a Gitea Actions runner label
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4 # Action to clone the repo
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5 # Action to install a specific Go version
|
||||
with:
|
||||
go-version: '1.25.5' # Specify your required Go version
|
||||
|
||||
- name: Run golangci-lint
|
||||
uses: golangci/golangci-lint-action@v8 # Use the golangci-lint action
|
||||
with:
|
||||
version: v2.7.2 # Specify the linter version
|
||||
# Optional: additional arguments
|
||||
args: --verbose
|
||||
working-directory: ./provider/dasel
|
||||
|
||||
- name: Run go test
|
||||
run: go test ./...
|
||||
working-directory: ./provider/dasel
|
||||
|
||||
@@ -18,6 +18,9 @@ on:
|
||||
- '.gitea/workflows/vault.yml'
|
||||
- 'provider/yaml/**'
|
||||
- '.gitea/workflows/yaml.yml'
|
||||
- 'provider/dasel/**'
|
||||
- '.gitea/workflows/dasel.yml'
|
||||
|
||||
|
||||
|
||||
jobs:
|
||||
|
||||
Reference in New Issue
Block a user