Skip to content

Commit

Permalink
Add steelthread tests to CI and to mage test:all
Browse files Browse the repository at this point in the history
  • Loading branch information
josephschorr committed Dec 13, 2024
1 parent b723969 commit 819af26
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: "Build & Test"
on: # yamllint disable-line rule:truthy
on: # yamllint disable-line rule:truthy
push:
branches:
- "main"
Expand Down Expand Up @@ -72,6 +72,18 @@ jobs:
- name: "Unit tests"
run: "go run mage.go test:unit"

steelthread:
name: "Steelthread"
runs-on: "buildjet-4vcpu-ubuntu-2204"
needs: "paths-filter"
if: |
needs.paths-filter.outputs.codechange == 'true'
steps:
- uses: "actions/checkout@v4"
- uses: "authzed/actions/setup-go@main"
- name: "Unit tests"
run: "go run mage.go test:steelthread"

integration:
name: "Integration Tests"
runs-on: "buildjet-4vcpu-ubuntu-2204"
Expand Down
2 changes: 1 addition & 1 deletion magefiles/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type Test mg.Namespace
func (t Test) All() error {
ds := Testds{}
c := Testcons{}
mg.Deps(t.Unit, t.Integration, t.Image, t.Analyzers,
mg.Deps(t.Unit, t.Integration, t.Steelthread, t.Image, t.Analyzers,
ds.Crdb, ds.Postgres, ds.Spanner, ds.Mysql,
c.Crdb, c.Spanner, c.Postgres, c.Mysql)
return nil
Expand Down

0 comments on commit 819af26

Please sign in to comment.