-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
temporarily disable integration tests
- Loading branch information
Showing
1 changed file
with
54 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,14 +6,14 @@ name: Build and Deploy Clubs | |
on: push | ||
|
||
jobs: | ||
# backend-check: | ||
# name: "Backend Check" | ||
# uses: pennlabs/shared-actions/.github/workflows/[email protected] | ||
# with: | ||
# projectName: pennclubs | ||
# path: backend | ||
# flake: true | ||
# black: true | ||
backend-check: | ||
name: "Backend Check" | ||
uses: pennlabs/shared-actions/.github/workflows/[email protected] | ||
with: | ||
projectName: pennclubs | ||
path: backend | ||
flake: true | ||
black: true | ||
|
||
frontend-check: | ||
name: "Frontend Check" | ||
|
@@ -77,51 +77,51 @@ jobs: | |
path: /tmp/image.tar | ||
needs: frontend-check | ||
|
||
integration-tests: | ||
name: Integration Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/download-artifact@v2 | ||
- name: Load docker images | ||
run: |- | ||
docker load --input build-backend/image.tar | ||
docker load --input build-frontend/image.tar | ||
- name: Run docker compose | ||
run: |- | ||
mkdir -p /tmp/test-results | ||
docker-compose -f docker-compose.test.yaml up -d | ||
- name: Wait for backend | ||
run: |- | ||
for try in {1..20}; do | ||
docker-compose -f docker-compose.test.yaml exec -T backend python manage.py migrate --check && break | ||
sleep 5 | ||
done | ||
- name: Populate backend | ||
run: docker-compose -f docker-compose.test.yaml exec -T backend python manage.py populate | ||
- name: Run integration tests | ||
run: docker-compose -f docker-compose.test.yaml exec -T frontend yarn integration | ||
- name: Delete artifacts when no longer needed | ||
if: failure() || github.ref != 'refs/heads/master' | ||
uses: geekyeggo/delete-artifact@v1 | ||
with: | ||
name: |- | ||
build-backend | ||
build-frontend | ||
- name: Print logs on failure | ||
if: failure() | ||
run: docker-compose -f docker-compose.test.yaml logs | ||
- name: Upload artifacts on failure | ||
if: failure() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: cypress-output | ||
path: /tmp/test-results | ||
env: | ||
GIT_SHA: ${{ github.sha }} | ||
needs: | ||
- build-backend | ||
- build-frontend | ||
# integration-tests: | ||
# name: Integration Tests | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: actions/download-artifact@v2 | ||
# - name: Load docker images | ||
# run: |- | ||
# docker load --input build-backend/image.tar | ||
# docker load --input build-frontend/image.tar | ||
# - name: Run docker compose | ||
# run: |- | ||
# mkdir -p /tmp/test-results | ||
# docker-compose -f docker-compose.test.yaml up -d | ||
# - name: Wait for backend | ||
# run: |- | ||
# for try in {1..20}; do | ||
# docker-compose -f docker-compose.test.yaml exec -T backend python manage.py migrate --check && break | ||
# sleep 5 | ||
# done | ||
# - name: Populate backend | ||
# run: docker-compose -f docker-compose.test.yaml exec -T backend python manage.py populate | ||
# - name: Run integration tests | ||
# run: docker-compose -f docker-compose.test.yaml exec -T frontend yarn integration | ||
# - name: Delete artifacts when no longer needed | ||
# if: failure() || github.ref != 'refs/heads/master' | ||
# uses: geekyeggo/delete-artifact@v1 | ||
# with: | ||
# name: |- | ||
# build-backend | ||
# build-frontend | ||
# - name: Print logs on failure | ||
# if: failure() | ||
# run: docker-compose -f docker-compose.test.yaml logs | ||
# - name: Upload artifacts on failure | ||
# if: failure() | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: cypress-output | ||
# path: /tmp/test-results | ||
# env: | ||
# GIT_SHA: ${{ github.sha }} | ||
# needs: | ||
# - build-backend | ||
# - build-frontend | ||
|
||
post-integration-publish: | ||
name: Publish Images | ||
|
@@ -147,7 +147,7 @@ jobs: | |
run: |- | ||
docker push -a pennlabs/penn-clubs-backend | ||
docker push -a pennlabs/penn-clubs-frontend | ||
needs: integration-tests | ||
# needs: integration-tests | ||
|
||
deploy: | ||
name: "Deploy" | ||
|