Skip to content

Commit

Permalink
Merge cd84971 into 4cf4b49
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs authored Aug 19, 2024
2 parents 4cf4b49 + cd84971 commit 15e7b27
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,13 @@ jobs:
run: yarn build

docker:
name: Test Docker builds
name: Test dev Docker builds
runs-on: ubuntu-latest
strategy:
matrix:
target:
- "app"
- "app_dev"
- "api"
- "api_dev"
- "database"
- "database_dev"

steps:
Expand All @@ -134,13 +131,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Set some environment variables for CI containers pre-build
run: |
cp webapp/.env.test_e2e webapp/.env
echo "VUE_APP_API_URL=http://localhost:5001" >> .env
echo "PYDATALAB_TESTING=true" >> pydatalab/.env
- name: Build Docker images and cache them
- name: Build Docker containers
uses: docker/bake-action@v5
with:
files: docker-compose.yml
Expand All @@ -149,12 +140,10 @@ jobs:
set: |
*.cache-to=type=gha,scope=build-${{ matrix.target }},mode=max
*.cache-from=type=gha,scope=build-${{ matrix.target }}
api.args.PYDATALAB_TESTING=true
e2e:
name: e2e tests
runs-on: ubuntu-latest
needs: [docker]
strategy:
fail-fast: false
max-parallel: 3
Expand All @@ -180,17 +169,20 @@ jobs:
load: true
targets: 'app,api,database'
set: |
app.cache-to=type=gha,scope=build-app,mode=max
app.cache-from=type=gha,scope=build-app
app.tags=datalab-app:latest
api.cache-to=type=gha,scope=build-api,mode=max
api.cache-from=type=gha,scope=build-api
api.tags=datalab-api:latest
database.cache-to=type=gha,scope=build-database,mode=max
database.cache-from=type=gha,scope=build-database
database.tags=datalab-database:latest
- name: Start services
run: |
# Launch production container profiles and wait for them to come up
docker compose up database api app -d --wait
docker compose up database api app --no-build -d --wait
- name: Run end-to-end tests
uses: cypress-io/github-action@v6
Expand Down

0 comments on commit 15e7b27

Please sign in to comment.