Skip to content

Commit

Permalink
GitHub Actions initial E2E testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkafton committed Jan 30, 2024
1 parent 0fb9978 commit ec9c938
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: CI
on: [push]
on:
push:
branches-ignore:
- "jk/418-e2e-tests-ci"
jobs:
python-tests:
runs-on: ubuntu-latest
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/e2e-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: E2E-testing
on: [push]
jobs:
e2e-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Start web service
run: |
cp .env.example .env
docker-compose up web nginx
- uses: actions/setup-node@v3
with:
node-version: 20

- name: Install dependencies
run: yarn workspace e2e_testing install

- name: Install Playwright browsers
run: yarn workspace e2e_testing exec playwright install --with-deps

- name: Run Playwright tests
run: yarn workspace e2e_testing test
env:
BASE_URL: http://localhost:8063

- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: e2e_testing/playwright-report/
retention-days: 30
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# MIT Open

![CI Workflow](https://github.com/mitodl/mit-open/actions/workflows/ci.yml/badge.svg)
![E2E Testing Workflow](https://github.com/mitodl/mit-open/actions/workflows/e2e-testing.yml/badge.svg)

This application provides a central interface from which learners can browse MIT courses.

**SECTIONS**
Expand Down

0 comments on commit ec9c938

Please sign in to comment.