mirror of
https://github.com/lukaszraczylo/shared-actions.git
synced 2026-10-12 04:54:48 +00:00
feat: validate workflows and actions, and prepare Renovate bumps
scripts/check-actions.sh runs actionlint and checks that every external uses: reference resolves. The validate workflow runs it, then runs the go-test and node-build actions and the node-pr workflow against small fixtures, so a bump of an action they use is exercised before it merges. renovate.json bumps the actions this repository uses. Minor and patch bumps merge themselves once validate is green. Major bumps wait for a person, because every consumer calls these actions at @main. The same script runs as a Renovate post-upgrade task and marks a failing branch so no PR opens.
This commit is contained in:
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
// Package selftest is a fixture that the validate workflow runs the go-test action against.
|
||||
package selftest
|
||||
|
||||
// Add returns the sum of a and b.
|
||||
func Add(a, b int) int { return a + b }
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
package selftest
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestAdd(t *testing.T) {
|
||||
if got := Add(2, 3); got != 5 {
|
||||
t.Fatalf("Add(2, 3) = %d, want 5", got)
|
||||
}
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
module example.com/selftest
|
||||
|
||||
go 1.24
|
||||
Reference in New Issue
Block a user