Skip to content

Commit

Permalink
Move Windows compilation test to GH Actions and enable integration/co…
Browse files Browse the repository at this point in the history
…verage

Signed-off-by: Brad Davidson <[email protected]>
  • Loading branch information
brandond committed Feb 5, 2025
1 parent f78769d commit 9c6bbc1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 67 deletions.
8 changes: 0 additions & 8 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@ steps:
- name: docker
path: /var/run/docker.sock

- name: validate-cross-compilation
image: rancher/dapper:v0.6.0
commands:
- dapper validate-cross-compilation
volumes:
- name: docker
path: /var/run/docker.sock

- name: fossa
image: rancher/drone-fossa:latest
failure: ignore
Expand Down
25 changes: 24 additions & 1 deletion .github/workflows/unitcoverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: ./.github/actions/setup-go
- name: Run Unit Tests
run: |
go test -coverpkg=./... -coverprofile=coverage.out ./pkg/... -run Unit
go test -coverpkg=./pkg/... -coverprofile=coverage.out ./pkg/... -run Unit
go tool cover -func coverage.out
- name: On Failure, Launch Debug Session
if: ${{ failure() }}
Expand All @@ -53,3 +53,26 @@ jobs:
files: ./coverage.out
flags: unittests # optional
verbose: true # optional (default = false)
wtest:
name: Unit Tests (Windows 2022)
runs-on: windows-2022
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install Go
uses: actions/setup-go@v5
- name: Run Unit Tests
run: |
go test -coverpkg=./pkg/... -coverprofile=coverage.out ./pkg/... -run Unit
go tool cover -func coverage.out
- name: Upload Results To Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.out
flags: unittests # optional
verbose: true # optional (default = false)

58 changes: 0 additions & 58 deletions scripts/validate-cross-compilation

This file was deleted.

0 comments on commit 9c6bbc1

Please sign in to comment.