Skip to content

Commit

Permalink
Prettifier
Browse files Browse the repository at this point in the history
  • Loading branch information
gemanor committed Oct 28, 2024
1 parent a4e0d9d commit 3d3616b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ name: Node.js CI

on:
push:
branches: [ "main" ]
branches: ['main']
pull_request:
branches: [ "main" ]
branches: ['main']

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand All @@ -20,12 +19,12 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
4 changes: 3 additions & 1 deletion source/commands/pdp/run.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { type infer as zInfer, number, object } from 'zod';
import { option } from 'pastel';

export const options = object({
opa: number().optional().describe(option({ description: 'Expose OPA port from the PDP' })),
opa: number()
.optional()
.describe(option({ description: 'Expose OPA port from the PDP' })),
});

type Props = {
Expand Down
5 changes: 3 additions & 2 deletions source/components/PDPCommand.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ export default function PDPCommand({ opa }: Props) {
return authToken ? (
<>
<Text color="green">Run the following command from your terminal:</Text>
<Text wrap='end'>
docker run -p 7766:7000 {opa ? `-p ${opa}:8181` : ''} --env PDP_API_KEY={authToken} --env PDP_DEBUG=true permitio/pdp-v2:latest
<Text wrap="end">
docker run -p 7766:7000 {opa ? `-p ${opa}:8181` : ''} --env PDP_API_KEY=
{authToken} --env PDP_DEBUG=true permitio/pdp-v2:latest
</Text>
</>
) : (
Expand Down

0 comments on commit 3d3616b

Please sign in to comment.