Skip to content

Commit

Permalink
Merge pull request #2167 from josephschorr/steelthread-ci
Browse files Browse the repository at this point in the history
Add steelthread tests to CI and to `mage test:all`
  • Loading branch information
josephschorr authored Dec 14, 2024
2 parents b723969 + 29ea131 commit 631c3b5
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: "Steelthread 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 631c3b5

Please sign in to comment.