Skip to content

Commit

Permalink
feat(add): validation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealToxicDev committed Nov 9, 2024
1 parent ee013db commit 1769c6a
Show file tree
Hide file tree
Showing 7 changed files with 323 additions and 453 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: TheRealToxicDev
custom: octyflow.ca
32 changes: 32 additions & 0 deletions .github/workflows/validate-openapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Validate OpenAPI Specification

on:
push:
branches:
- development
paths:
- openapi.yaml
pull_request:
branches:
- development
paths:
- openapi.yaml

jobs:
validate-openapi:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install swagger-cli
run: npm install -g @apidevtools/swagger-cli

- name: Validate openapi.yaml
run: swagger-cli validate openapi.yaml
4 changes: 2 additions & 2 deletions app/og/[...slug]/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { type ImageResponse } from 'next/og';
import { metadataImage } from '@/utils/metadata-image';
import { generateOGImage } from '@/app/og/[...slug]/og';

const font = readFileSync('./app/og/[...slug]/Geist-Regular.ttf');
const fontBold = readFileSync('./app/og/[...slug]/Geist-Bold.ttf');
const font = readFileSync('@/app/og/[...slug]/Geist-Regular.ttf');
const fontBold = readFileSync('@/app/og/[...slug]/Geist-Bold.ttf');

export const GET = metadataImage.createAPI((page: any): ImageResponse => {
return generateOGImage({
Expand Down
Loading

0 comments on commit 1769c6a

Please sign in to comment.