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:
|
||||
- name: Setup GStreamer
|
||||
id: setup_gstreamer
|
||||
uses: blinemedical/setup-gstreamer@45324555100927b587d390d8cf3940f91fd3bdc9
|
||||
uses: RSWilli/setup-gstreamer@5472e33168ba7b1f3bb01dc81ca067e263633824
|
||||
with:
|
||||
version: 1.22.0
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
cache-dependency-path: |
|
||||
go.sum
|
||||
go-version: "^1.21.0"
|
||||
- name: checkout
|
||||
uses: actions/checkout@v3
|
||||
|
9
.github/workflows/tests.yml
vendored
9
.github/workflows/tests.yml
vendored
@@ -16,13 +16,14 @@ jobs:
|
||||
- name: Check formatting
|
||||
uses: Jerome1337/gofmt-action@v1.0.5
|
||||
with:
|
||||
gofmt-path: '.'
|
||||
gofmt-flags: '-l -d'
|
||||
gofmt-flags: "-l -d"
|
||||
|
||||
- name: Check spellings
|
||||
uses: reviewdog/action-misspell@v1
|
||||
with:
|
||||
locale: "US"
|
||||
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, ",")
|
||||
},
|
||||
"extendsFromBase": func(subclass string) bool {
|
||||
if strings.HasPrefix(subclass, "base.") {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return strings.HasPrefix(subclass, "base.")
|
||||
},
|
||||
}).Parse(`// !WARNING! THIS FILE WAS GENERATED BY GST-PLUGIN-GEN !WARNING! //
|
||||
package main
|
||||
|
@@ -1,3 +1,5 @@
|
||||
//lint:file-ignore U1000 Ignore all unused code, this is example code
|
||||
|
||||
// +plugin:Name=boilerplate
|
||||
// +plugin:Description=My plugin written in go
|
||||
// +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:Description=A bin element written in go
|
||||
// +plugin:Version=v0.0.1
|
||||
|
Reference in New Issue
Block a user