-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into logic-1
- Loading branch information
Showing
200 changed files
with
6,607 additions
and
4,115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,12 @@ name: Validate | |
|
||
on: | ||
workflow_call: | ||
inputs: | ||
playwright_version: | ||
description: Installed playwright version | ||
required: false | ||
default: "1.48.1" | ||
type: string | ||
|
||
jobs: | ||
run-tests: | ||
|
@@ -14,7 +20,7 @@ jobs: | |
- name: Read node version from `.nvmrc` file | ||
id: nvmrc | ||
shell: bash | ||
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) | ||
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT | ||
|
||
- name: Install required node.js version | ||
uses: actions/setup-node@v4 | ||
|
@@ -44,14 +50,40 @@ jobs: | |
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Install playwright | ||
run: pnpm dlx [email protected] install --with-deps | ||
- name: Cache Playwright binaries | ||
uses: actions/cache@v4 | ||
id: playwright-cache | ||
with: | ||
path: ~/.cache/ms-playwright | ||
key: ${{ runner.os }}-playwright-${{ inputs.playwright_version }} | ||
|
||
- name: Install Playwright | ||
run: pnpm dlx playwright@${{ inputs.playwright_version }} install --with-deps | ||
if: steps.playwright-cache.outputs.cache-hit != 'true' | ||
|
||
# While most of the test suite is self-contained, the tests for the demo | ||
# servers require a prod build of @atj/server. | ||
- name: Build | ||
run: pnpm build | ||
|
||
- name: Make directory for build artifacts | ||
run: mkdir -p output/build-artifacts | ||
|
||
|
||
- name: Spotlight app performance budget | ||
run: pnpm --filter @atj/spotlight size:ci > output/build-artifacts/spotlight-size-output.txt | ||
|
||
- name: Design package performance budget | ||
run: pnpm --filter @atj/design size:ci > output/build-artifacts/design-size-output.txt | ||
|
||
- name: Upload size:ci results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: size-limit-results | ||
path: | | ||
output/build-artifacts/spotlight-size-output.txt | ||
output/build-artifacts/design-size-output.txt | ||
- name: Lint source code | ||
shell: bash | ||
run: pnpm lint | ||
|
@@ -60,10 +92,15 @@ jobs: | |
shell: bash | ||
run: AUTH_SECRET=not-super-secret pnpm test:ci | ||
|
||
- name: Setup Terraform | ||
uses: hashicorp/setup-terraform@v3 | ||
with: | ||
terraform_version: "1.10.4" | ||
|
||
- name: Initialize Terraform CDK configuration | ||
shell: bash | ||
working-directory: infra/cdktf | ||
run: | | ||
cd infra/cdktf | ||
pnpm cdktf get | ||
pnpm build:tsc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
name: Create PR from main to staging | ||
name: Create PR from main to demo | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
create-pr-to-staging: | ||
create-pr-to-demo: | ||
uses: ./.github/workflows/_pr-create.yml | ||
secrets: inherit | ||
with: | ||
base: staging | ||
base: demo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
- staging | ||
- demo | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v20.18.0 | ||
v22.12.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:20-bookworm AS base | ||
FROM node:22-bookworm AS base | ||
|
||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.