mirror of
https://github.com/go-gst/go-gst.git
synced 2025-09-26 20:11:18 +08:00
add tests, improve build time
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -14,11 +14,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Setup GStreamer
|
- name: Setup GStreamer
|
||||||
id: setup_gstreamer
|
id: setup_gstreamer
|
||||||
uses: blinemedical/setup-gstreamer@45324555100927b587d390d8cf3940f91fd3bdc9
|
uses: RSWilli/setup-gstreamer@5472e33168ba7b1f3bb01dc81ca067e263633824
|
||||||
with:
|
with:
|
||||||
version: 1.22.0
|
version: 1.22.0
|
||||||
- uses: actions/setup-go@v4
|
- uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
|
cache-dependency-path: |
|
||||||
|
go.sum
|
||||||
go-version: "^1.21.0"
|
go-version: "^1.21.0"
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
9
.github/workflows/tests.yml
vendored
9
.github/workflows/tests.yml
vendored
@@ -16,13 +16,14 @@ jobs:
|
|||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
uses: Jerome1337/gofmt-action@v1.0.5
|
uses: Jerome1337/gofmt-action@v1.0.5
|
||||||
with:
|
with:
|
||||||
gofmt-path: '.'
|
gofmt-flags: "-l -d"
|
||||||
gofmt-flags: '-l -d'
|
|
||||||
|
|
||||||
- name: Check spellings
|
- name: Check spellings
|
||||||
uses: reviewdog/action-misspell@v1
|
uses: reviewdog/action-misspell@v1
|
||||||
with:
|
with:
|
||||||
locale: "US"
|
locale: "US"
|
||||||
fail_on_error: true
|
fail_on_error: true
|
||||||
|
filter_mode: nofilter
|
||||||
|
- uses: dominikh/staticcheck-action@v1.3.0
|
||||||
|
with:
|
||||||
|
min-go-version: "1.21"
|
||||||
|
@@ -123,10 +123,7 @@ var pluginTmpl = template.Must(template.New("").Funcs(template.FuncMap{
|
|||||||
return strings.Split(ifacesString, ",")
|
return strings.Split(ifacesString, ",")
|
||||||
},
|
},
|
||||||
"extendsFromBase": func(subclass string) bool {
|
"extendsFromBase": func(subclass string) bool {
|
||||||
if strings.HasPrefix(subclass, "base.") {
|
return strings.HasPrefix(subclass, "base.")
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
},
|
},
|
||||||
}).Parse(`// !WARNING! THIS FILE WAS GENERATED BY GST-PLUGIN-GEN !WARNING! //
|
}).Parse(`// !WARNING! THIS FILE WAS GENERATED BY GST-PLUGIN-GEN !WARNING! //
|
||||||
package main
|
package main
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
//lint:file-ignore U1000 Ignore all unused code, this is example code
|
||||||
|
|
||||||
// +plugin:Name=boilerplate
|
// +plugin:Name=boilerplate
|
||||||
// +plugin:Description=My plugin written in go
|
// +plugin:Description=My plugin written in go
|
||||||
// +plugin:Version=v0.0.1
|
// +plugin:Version=v0.0.1
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
//lint:file-ignore U1000 Ignore all unused code, this is a work in progress
|
||||||
|
|
||||||
// +plugin:Name=gobin
|
// +plugin:Name=gobin
|
||||||
// +plugin:Description=A bin element written in go
|
// +plugin:Description=A bin element written in go
|
||||||
// +plugin:Version=v0.0.1
|
// +plugin:Version=v0.0.1
|
||||||
|
Reference in New Issue
Block a user