Skip to content

Commit

Permalink
Merge pull request #2 from oaknational/rc
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrose121 authored Aug 22, 2024
2 parents 67619bb + 0be4f78 commit 613c712
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 40 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: Playwright
on:
deployment_status:
push:
branches:
- production
jobs:
test-e2e:
timeout-minutes: 20
runs-on: ubuntu-latest
if: github.event.deployment_status.state == 'success' && contains(github.event.deployment_status.target_url, 'ai-beta-nextjs')
if: github.event.deployment_status.state == 'success' && contains(github.event.deployment_status.target_url, 'oak-ai-lesson-assistant')
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
Expand Down Expand Up @@ -37,7 +40,7 @@ jobs:
working-directory: apps/nextjs
# Only include @openai tests on RC branches
run: |
if [[ "${{ steps.ref_from_sha.outputs.branch_name }}" =~ ^v[0-9\.]+-rc[0-9]+-branch$ ]]; then
if [[ "${{ steps.ref_from_sha.outputs.branch_name }}" =~ ^rc$ ]]; then
pnpm test-e2e
else
pnpm test-e2e --grep-invert @openai
Expand All @@ -46,7 +49,7 @@ jobs:
TEST_BASE_URL: ${{ github.event.deployment_status.target_url }}
TEST_USER_EMAIL: ${{ steps.doppler.outputs.TEST_USER_EMAIL }}
TEST_USER_PASSWORD: ${{ steps.doppler.outputs.TEST_USER_PASSWORD }}
VERCEL_AUTOMATION_BYPASS_SECRET: ${{ steps.doppler.outputs.VERCEL_AUTOMATION_BYPASS_SECRET }}
VERCEL_AUTOMATION_BYPASS_SECRET: ${{ secrets.VERCEL_AUTOMATION_BYPASS_SECRET }}
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ steps.doppler.outputs.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
CLERK_SECRET_KEY: ${{ steps.doppler.outputs.CLERK_SECRET_KEY }}
- name: Upload Playwright report
Expand All @@ -65,7 +68,7 @@ jobs:
message: |
### Playwright e2e tests
[Job summary](https://github.com/oaknational/ai-beta/actions/runs/${{github.run_id}})
[Job summary](https://github.com/oaknational/oak-ai-lesson-assistant/actions/runs/${{github.run_id}})
[Download report](${{ steps.upload-report.outputs.artifact-url }})
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/post_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Note we can't use caching here, because caching needs GITHUB_REF to be defined,
# and Vercel deployment_status events set deployment.ref to the SHA, not the triggering
# branch or pull request.
# https://github.com/actions/cache/issues/319
- name: Use Node.js

- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8

- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "npm"
- run: npm ci
node-version: 20
cache: "pnpm"

- name: Install deps (with cache)
run: pnpm install

- uses: ./.github/actions/ref_from_sha
name: Get PR Ref from SHA
Expand Down
25 changes: 0 additions & 25 deletions packages/core/src/scripts/seedLessons.ts

This file was deleted.

6 changes: 3 additions & 3 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
sonar.projectKey=oaknational_ai-experiments
sonar.projectKey=oaknational_oak-ai-lesson-assistant
sonar.organization=oaknational

sonar.projectName=Oak AI Projects
sonar.projectVersion=v1.38.0
sonar.projectName=oak-ai-lesson-assistant
sonar.projectVersion=v1.41.1
sonar.projectDescription=Oak National Academy AI Web Application
sonar.links.homepage=https://labs.thenational.academy/

Expand Down

0 comments on commit 613c712

Please sign in to comment.