Skip to content

Commit

Permalink
add post tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Sep 1, 2024
1 parent 33a213e commit dc24036
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ jobs:
version: 'v1.26.2'
args: release --clean --skip=validate -f .goreleaser.mac.yaml

- name: Post Tests
run: |
dist/sling_darwin_arm64/sling conns discover local
release-scoop:
# runs-on: [self-hosted, Windows]
runs-on: windows-latest
Expand Down Expand Up @@ -147,6 +151,11 @@ jobs:
version: 'v1.26.2'
args: release --clean --skip=validate -f .goreleaser.windows.yaml

- name: Post Tests
shell: pwsh
run: |
.\dist\sling_windows_amd64\sling.exe conns discover local
release-linux-arm64:
runs-on: [self-hosted, Linux, ARM64]
timeout-minutes: 20
Expand Down Expand Up @@ -177,6 +186,10 @@ jobs:
version: 'v1.26.2'
args: release --clean --skip=validate -f .goreleaser.linux.arm64.yaml

- name: Post Tests
run: |
dist/sling_linux_arm64/sling conns discover local
# pushing to docker manually
# could not figure out how to make arm64 work in goreleaser
- name: Push to Docker Manually
Expand Down Expand Up @@ -220,6 +233,10 @@ jobs:
version: 'v1.26.2'
args: release --clean --skip=validate -f .goreleaser.linux.amd64.yaml

- name: Post Tests
run: |
dist/sling_linux_amd64/sling conns discover local
- name: Dispatch test-sling-action
uses: peter-evans/repository-dispatch@v2
with:
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/test-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ jobs:
version: 'v1.26.2'
args: build --clean --skip=validate -f .goreleaser.mac.yaml

- name: Post Tests
run: |
dist/sling_darwin_arm64/sling conns discover local
build-scoop:
runs-on: windows-latest
timeout-minutes: 20
Expand Down Expand Up @@ -101,6 +105,11 @@ jobs:
version: 'v1.26.2'
args: build --clean --skip=validate -f .goreleaser.windows.yaml

- name: Post Tests
shell: pwsh
run: |
.\dist\sling_windows_amd64\sling.exe conns discover local
build-linux-arm64:
runs-on: [self-hosted, Linux, ARM64]
timeout-minutes: 20
Expand Down Expand Up @@ -132,6 +141,10 @@ jobs:
version: 'v1.26.2'
args: build --clean --skip=validate -f .goreleaser.linux.arm64.yaml

- name: Post Tests
run: |
dist/sling_linux_arm64/sling conns discover local
build-linux-amd64:
# runs-on: ubuntu-20.04
runs-on: [self-hosted, Linux, X64, ubuntu-16]
Expand Down Expand Up @@ -162,4 +175,8 @@ jobs:
with:
distribution: goreleaser
version: 'v1.26.2'
args: build --clean --skip=validate -f .goreleaser.linux.amd64.yaml
args: build --clean --skip=validate -f .goreleaser.linux.amd64.yaml

- name: Post Tests
run: |
dist/sling_linux_amd64/sling conns discover local
2 changes: 2 additions & 0 deletions scripts/ci/build.linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ go build -ldflags="-X 'github.com/slingdata-io/sling-cli/core.Version=$VERSION'

./sling --version

./sling conns discover local

tar -czvf sling_linux_amd64.tar.gz sling

echo "DONE"
2 changes: 2 additions & 0 deletions scripts/ci/build.mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ go build -ldflags="-X 'github.com/slingdata-io/sling-cli/core.Version=$VERSION'

./sling --version

./sling conns discover local

tar -czvf sling_darwin_arm64.tar.gz sling
tar -czvf sling_darwin_amd64.tar.gz sling

Expand Down
2 changes: 2 additions & 0 deletions scripts/ci/build.win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ go build -ldflags="-X 'github.com/slingdata-io/sling-cli/core.Version=$env:VERSI

.\sling.exe --version

.\sling.exe conns discover local

tar -czvf sling_windows_amd64.tar.gz sling.exe

0 comments on commit dc24036

Please sign in to comment.