Skip to content

Commit

Permalink
Test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
thschmitt committed Dec 20, 2024
1 parent 958250b commit 4302601
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ jobs:
run: |
go install github.com/golangci/golangci-lint/cmd/[email protected]
golangci-lint run
- name: Test
run: go test -coverprofile="coverage.out" -coverpkg "$(go list github.com/UiPath/uipathcli/... | grep -v 'test' | tr '\n' ',')" ./...
- name: Coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go install github.com/mattn/goveralls@latest
goveralls -coverprofile="coverage.out" -service="github"
- name: Package
run: ./build.sh && ./package.sh
- name: Upload packages
Expand All @@ -50,8 +42,31 @@ jobs:
path: build/packages/
if-no-files-found: error

test:
runs-on: ubuntu-latest
outputs:
UIPATHCLI_VERSION: ${{ steps.version.outputs.UIPATHCLI_VERSION }}
env:
CGO_ENABLED: "0"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.22.2'
cache: true
- name: Test
run: go test -coverprofile="coverage.out" -coverpkg "$(go list github.com/UiPath/uipathcli/... | grep -v 'test' | tr '\n' ',')" ./...
- name: Coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go install github.com/mattn/goveralls@latest
goveralls -coverprofile="coverage.out" -service="github"
publish_pages:
needs: build
needs: [build, test]
permissions:
pages: write
id-token: write
Expand Down Expand Up @@ -79,7 +94,7 @@ jobs:
uses: actions/deploy-pages@v4

release:
needs: build
needs: [build, test]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
env:
Expand Down

0 comments on commit 4302601

Please sign in to comment.