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 46baa11
Showing 1 changed file with 33 additions and 9 deletions.
42 changes: 33 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,25 @@ jobs:
run: |
go install github.com/golangci/golangci-lint/cmd/[email protected]
golangci-lint run
- name: Package
run: ./build.sh && ./package.sh
- name: Upload packages
uses: actions/upload-artifact@v4
with:
name: packages
path: build/packages/
if-no-files-found: error

test_linux:
runs-on: ubuntu-latest
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
Expand All @@ -41,17 +60,22 @@ jobs:
run: |
go install github.com/mattn/goveralls@latest
goveralls -coverprofile="coverage.out" -service="github"
- name: Package
run: ./build.sh && ./package.sh
- name: Upload packages
uses: actions/upload-artifact@v4
test_windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
name: packages
path: build/packages/
if-no-files-found: error
go-version: '1.22.2'
cache: true
- name: Test
run: go test ./...

publish_pages:
needs: build
needs: [build, test_linux, test_windows]
permissions:
pages: write
id-token: write
Expand Down Expand Up @@ -79,7 +103,7 @@ jobs:
uses: actions/deploy-pages@v4

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

0 comments on commit 46baa11

Please sign in to comment.