Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: release #2

Merged
merged 6 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading