Skip to content

Commit

Permalink
fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
steebchen committed Jun 21, 2023
1 parent 21f661c commit 9cc3138
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 45 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/integration-test-alpine.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: integration test all
on: pull_request
jobs:
integration-alpine:
integration:
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -46,3 +46,44 @@ jobs:
- name: test
if: steps.changes.outputs.go == 'true'
run: docker build . --build-arg IMAGE="golang:1" -f test/integration/integration.dockerfile -t integration && docker run integration

integration-alpine:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
go:
- '.github/workflows/**/*.yml'
- '**/*.go'
- '**/*.gotpl'
- '**/*.mod'
- '**/*.sum'
- '**/*.work'
# fix for GitHub actions MacOS
- name: Setup docker
if: runner.os == 'macos' && steps.changes.outputs.go == 'true'
run: |
brew install docker
colima start
# For testcontainers to find the Colima socket
# https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
- uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache
restore-keys: ${{ runner.os }}-go-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

- name: test on alpine
if: steps.changes.outputs.go == 'true'
run: docker build . --build-arg IMAGE="golang:1-alpine" -f test/integration/integration.dockerfile -t integration && docker run integration
2 changes: 1 addition & 1 deletion test/integration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

This folder acts as a small Prisma Client Go example and a full integration test of the runtime binary fetching.

This integration test folder needs to be run with docker (see [`.github/workflows/integration-test-cross.yml`](/.github/workflows/integration-test-cross.yml)).
This integration test folder needs to be run with docker (see [`.github/workflows/integration-test.yml`](/.github/workflows/integration-test.yml)).

0 comments on commit 9cc3138

Please sign in to comment.