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 f1e3f77
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/e2e-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: E2E-testing
on: [push]
jobs:
e2e-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: start web service
run: 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 f1e3f77

Please sign in to comment.