Skip to content
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
18 changes: 18 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Check Pull requests
on: push
jobs:
Check-PullRequests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
- name: Install dependencies
run: pnpm install
- name: Build packages
run: pnpm --filter "./packages/**" build
- name: Build sample sites
run: pnpm --filter "./samples/**" build
- name: Run tests
run: pnpm --filter "./packages/**" test
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"private": "true",
"scripts": {
"build": "pnpm --filter \"./packages/**\" build",
"build:samples": "pnpm --filter \"./samples/**\" build",
"clean:all": "pnpm -r clean",
"test": "echo \"Error: no test specified\" && exit 1",
"publish:all": "pnpm --filter \"./packages/**\" publish --access public --no-git-checks"
Expand Down
2 changes: 1 addition & 1 deletion samples/fx-integration/src/app/en/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type Props = {
}>;
};

function returnFirst(content: any[]) {
function returnFirst<T>(content: T[]) {
if (content.length === 0) {
notFound();
}
Expand Down
2 changes: 2 additions & 0 deletions samples/fx-integration/src/app/registration/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { trackRegistration } from '@/lib/fx';
import { connection } from 'next/server';

export default async function Page() {
await connection();
await trackRegistration();

return <h1>Thanks for registration!</h1>;
Expand Down
2 changes: 1 addition & 1 deletion samples/fx-integration/src/components/FxCallout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ type Props = {
opti: Infer<typeof FxCalloutCT>;
};

export default function FxCallout({ opti }: Props) {
export default function FxCallout({}: Props) {
return <></>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
export default function Page() {
return (
<div>
This sample site doesn't have Live Preview enabled. Go to{' '}
This sample site doesn&apos;t have Live Preview enabled. Go to{' '}
<a href="/en/" target="_blank">
/en
</a>{' '}
Expand Down