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
12 changes: 8 additions & 4 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: build-lint-test
on:
workflow_call:
inputs:
pr-number:
required: false
type: string
jobs:
build:
runs-on: ubuntu-latest
env:
GH_PR_NUM: ${{ github.event.number }}
GH_PR_NUM: ${{ inputs.pr-number }}
steps:
- uses: actions/checkout@v4
- run: |
Expand Down Expand Up @@ -41,7 +45,7 @@ jobs:
lint:
runs-on: ubuntu-latest
env:
GH_PR_NUM: ${{ github.event.number }}
GH_PR_NUM: ${{ inputs.pr-number }}
needs: build
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -78,7 +82,7 @@ jobs:
test_jest:
runs-on: ubuntu-latest
env:
GH_PR_NUM: ${{ github.event.number }}
GH_PR_NUM: ${{ inputs.pr-number }}
needs: build
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -120,7 +124,7 @@ jobs:
test_a11y:
runs-on: ubuntu-latest
env:
GH_PR_NUM: ${{ github.event.number }}
GH_PR_NUM: ${{ inputs.pr-number }}
needs: build
steps:
- uses: actions/checkout@v4
Expand Down
56 changes: 0 additions & 56 deletions .github/workflows/build.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ on:
jobs:
call-build-lint-test-workflow:
uses: ./.github/workflows/build-lint-test.yml
secrets: inherit
with:
pr-number: ${{ github.event.number }}
47 changes: 47 additions & 0 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: pr-preview
on:
pull_request_target:
issue_comment:
types: [created]

jobs:
check-permissions:
uses: patternfly/.github/.github/workflows/check-team-membership.yml@main
secrets: inherit

deploy-preview:
runs-on: ubuntu-latest
needs: check-permissions
if: needs.check-permissions.outputs.allowed == 'true'
env:
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
GH_PR_TOKEN: ${{ secrets.GH_PR_TOKEN }}
GH_PR_NUM: ${{ needs.check-permissions.outputs.pr-number }}
steps:
- uses: actions/checkout@v4
- run: |
git fetch origin pull/$GH_PR_NUM/head:tmp
git checkout tmp
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- run: corepack enable
- uses: actions/cache@v4
id: yarn-cache
name: Cache yarn deps
with:
path: |
node_modules
**/node_modules
key: ${{ runner.os }}-yarn-22-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
- run: yarn install --immutable
if: steps.yarn-cache.outputs.cache-hit != 'true'
- run: yarn build
name: Build
- run: yarn build:docs
name: Build docs
- name: Upload docs
uses: patternfly/.github/.github/actions/surge-preview@main
with:
folder: packages/module/public
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"react",
"log",
"viewer",
"logviewer",
"logviewer"
],
"workspaces": [
"packages/*"
Expand Down
1 change: 1 addition & 0 deletions packages/module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"@patternfly/react-table": "^6.0.0",
"camel-case": "^3.0.0",
"monaco-editor": "^0.34.1",
"puppeteer": "^24.15.0",
"react-monaco-editor": "^0.51.0",
"resize-observer-polyfill": "^1.5.1",
"tslib": "^2.0.0"
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4064,6 +4064,7 @@ __metadata:
camel-case: "npm:^3.0.0"
memoize-one: "npm:^5.1.0"
monaco-editor: "npm:^0.34.1"
puppeteer: "npm:^24.15.0"
react-monaco-editor: "npm:^0.51.0"
resize-observer-polyfill: "npm:^1.5.1"
tslib: "npm:^2.0.0"
Expand Down
Loading