Skip to content

Commit

Permalink
Only run integration tests on ubuntu.
Browse files Browse the repository at this point in the history
The other platforms don't have docker available.
  • Loading branch information
robholland committed Oct 31, 2024
1 parent ed0b0f2 commit db92be8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ jobs:

- name: Build
run: go build ./cmd/oms
- name: Test

- name: Unit Tests
run: go test ./...

- name: Integration Tests
if: matrix.os == 'ubuntu-latest'
run: go test -tags=integration ./...

- name: Coverage
run: make unit-test-coverage functional-test-coverage coverage-report
2 changes: 2 additions & 0 deletions app/shipment/api_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build integration

package shipment_test

import (
Expand Down
2 changes: 2 additions & 0 deletions app/test/order_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build integration

package test

import (
Expand Down

0 comments on commit db92be8

Please sign in to comment.