From f1e3f773de8cf874a99f7f1c6f0469e570b5e907 Mon Sep 17 00:00:00 2001 From: Jon Kafton <939376+jonkafton@users.noreply.github.com> Date: Tue, 30 Jan 2024 13:46:53 +0100 Subject: [PATCH] GitHub Actions initial E2E testing workflow --- .github/workflows/e2e-testing.yml | 33 +++++++++++++++++++++++++++++++ README.md | 3 +++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/e2e-testing.yml diff --git a/.github/workflows/e2e-testing.yml b/.github/workflows/e2e-testing.yml new file mode 100644 index 0000000000..3016a6095a --- /dev/null +++ b/.github/workflows/e2e-testing.yml @@ -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 diff --git a/README.md b/README.md index 0493a2efde..72fb8ff4c7 100644 --- a/README.md +++ b/README.md @@ -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**