Skip to content

Commit

Permalink
refactor: run plugin tests with integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Aug 2, 2024
1 parent eeda1c8 commit 33cf9d5
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 28 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,27 +126,6 @@ jobs:
shell: bash
run: |
mage test:module
plugin-test:
name: Plugin Integration Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

- name: Install tools
uses: aquaproj/[email protected]
with:
aqua_version: v1.25.0

- name: Run plugin integration tests
shell: bash
run: |
mage test:plugin
vm-test:
name: VM Integration Test
Expand Down
2 changes: 1 addition & 1 deletion integration/integration_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build integration || vm_integration || module_integration || k8s_integration || plugin_integration
//go:build integration || vm_integration || module_integration || k8s_integration

package integration

Expand Down
2 changes: 1 addition & 1 deletion integration/plugin_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build plugin_integration
//go:build integration

package integration

Expand Down
5 changes: 0 additions & 5 deletions magefiles/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,6 @@ func (t Test) K8s() error {
return sh.RunWithV(ENV, "go", "test", "-v", "-tags=k8s_integration", "./integration/...")
}

// Plugin runs plugin integration tests
func (t Test) Plugin() error {
return sh.RunWithV(ENV, "go", "test", "-v", "-tags=plugin_integration", "./integration/...")
}

// Module runs Wasm integration tests
func (t Test) Module() error {
mg.Deps(t.FixtureContainerImages, t.GenerateExampleModules)
Expand Down

0 comments on commit 33cf9d5

Please sign in to comment.