From bcc6602dee38696d255fdaa7058ac69fe9caca0e Mon Sep 17 00:00:00 2001 From: "taeyoung.hong" Date: Thu, 14 May 2026 16:48:49 +0900 Subject: [PATCH 1/2] NXT-12459: Replace Travis CI with GitHub Actions --- .github/workflows/ci-branch.yml | 21 +++++++++++ .github/workflows/ci-pull-request.yml | 16 ++++++++ .github/workflows/ci-reusable.yml | 53 +++++++++++++++++++++++++++ .travis.yml | 27 -------------- 4 files changed, 90 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/ci-branch.yml create mode 100644 .github/workflows/ci-pull-request.yml create mode 100644 .github/workflows/ci-reusable.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci-branch.yml b/.github/workflows/ci-branch.yml new file mode 100644 index 00000000..e1fd79a7 --- /dev/null +++ b/.github/workflows/ci-branch.yml @@ -0,0 +1,21 @@ +name: CI + +on: + push: + branches: + - develop + - master + pull_request: + types: [opened, synchronize, reopened] + workflow_dispatch: + +concurrency: + group: ci-branch-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + branch: + uses: ./.github/workflows/ci-reusable.yml + with: + checkout-ref: ${{ github.event.pull_request.head.sha || github.sha }} + secrets: inherit diff --git a/.github/workflows/ci-pull-request.yml b/.github/workflows/ci-pull-request.yml new file mode 100644 index 00000000..9ab1857a --- /dev/null +++ b/.github/workflows/ci-pull-request.yml @@ -0,0 +1,16 @@ +name: CI + +on: + pull_request: + types: [opened, synchronize, reopened] + +concurrency: + group: ci-pr-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + pull-request: + uses: ./.github/workflows/ci-reusable.yml + with: + checkout-ref: '' + secrets: inherit diff --git a/.github/workflows/ci-reusable.yml b/.github/workflows/ci-reusable.yml new file mode 100644 index 00000000..509d8611 --- /dev/null +++ b/.github/workflows/ci-reusable.yml @@ -0,0 +1,53 @@ +name: CI Pipeline + +on: + workflow_call: + inputs: + checkout-ref: + description: 'Git ref to checkout (empty for default merge commit)' + type: string + required: false + default: '' + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: ['lts/*', 'node'] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: ${{ inputs.checkout-ref || github.ref }} + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: Clone and setup Enact CLI + run: | + git clone --branch=develop --depth 1 https://github.com/enactjs/cli ../cli + pushd ../cli + npm install + npm link + popd + + - name: Install project dependencies + run: | + npm install + + - name: Run ESLint + run: npm run lint -- -- --report-unused-disable-directives --max-warnings 0 . + + - name: Parsing docs + run: npm run parse + + - name: Building sample runner + run: npm run make-runner + + - name: Generating docs + run: npm run build diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 83025741..00000000 --- a/.travis.yml +++ /dev/null @@ -1,27 +0,0 @@ -dist: focal -language: node_js -node_js: - - lts/* - - node -sudo: false -install: - - npm config set prefer-offline false - - git clone --branch=develop --depth 1 https://github.com/enactjs/cli ../cli - - pushd ../cli - - npm install - - npm link - - popd - - npm install --legacy-peer-deps -script: - - echo -e "\x1b\x5b35;1m*** Linting docs...\x1b\x5b0m" - - npm run lint -- -- --report-unused-disable-directives --max-warnings 0 . - - echo -e "\x1b\x5b35;1m*** Linting complete\x1b\x5b0m" - - echo -e "\x1b\x5b35;1m*** Parsing docs...\x1b\x5b0m" - - npm run parse - - echo -e "\x1b\x5b35;1m*** Parsing complete\x1b\x5b0m" - - echo -e "\x1b\x5b35;1m*** Building sample runner...\x1b\x5b0m" - - npm run make-runner - - echo -e "\x1b\x5b35;1m*** Building sampler runner complete\x1b\x5b0m" - - echo -e "\x1b\x5b35;1m*** Generating docs...\x1b\x5b0m" - - npm run build - - echo -e "\x1b\x5b35;1m*** Doc generation complete\x1b\x5b0m" From 69b9bb397a95a3ed1bad348155212185e01893df Mon Sep 17 00:00:00 2001 From: "taeyoung.hong" Date: Fri, 15 May 2026 17:06:34 +0900 Subject: [PATCH 2/2] fix lint error --- gatsby-config.js | 1 + src/components/DocParse.js | 1 - src/components/DocsPage.js | 2 +- src/components/SmartLink/SmartLink.js | 1 - src/components/TreeNav/TreeNav.js | 1 - src/html.js | 4 ++-- src/utils/functions.js | 1 - 7 files changed, 4 insertions(+), 7 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 87eae4bf..f42f9d76 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -28,6 +28,7 @@ module.exports = { resolve: 'gatsby-source-filesystem', options: { name: 'pages', + // eslint-disable-next-line no-undef path: path.join(__dirname, 'src', 'pages') } }, diff --git a/src/components/DocParse.js b/src/components/DocParse.js index b55d983f..861c3204 100644 --- a/src/components/DocParse.js +++ b/src/components/DocParse.js @@ -110,7 +110,6 @@ function parseChildren (parent) { } } -// eslint-disable-next-line enact/prop-types function DocParse ({children, component: Component = 'div', ...rest}) { return ( diff --git a/src/components/DocsPage.js b/src/components/DocsPage.js index 5bd3875d..49411aa9 100644 --- a/src/components/DocsPage.js +++ b/src/components/DocsPage.js @@ -2,7 +2,7 @@ import {StaticQuery, graphql} from 'gatsby'; import Page from './Page'; -// eslint-disable-next-line enact/prop-types, enact/display-name +// eslint-disable-next-line enact/display-name export default ({children, location}) => ( { ); }; -// eslint-disable-next-line enact/prop-types const renderSection = ({title, active, children, to}) => { const uniqueKey = title.replace(/\s/, ''); return ( diff --git a/src/html.js b/src/html.js index 149fe263..0fdb8c7c 100644 --- a/src/html.js +++ b/src/html.js @@ -1,4 +1,4 @@ -import React from 'react'; +/* eslint react/no-unknown-property: off, react/no-danger: off */ import PropTypes from 'prop-types'; export default function HTML (props) { @@ -19,7 +19,7 @@ export default function HTML (props) {
{props.postBodyComponents} diff --git a/src/utils/functions.js b/src/utils/functions.js index ae4840cf..4337aaee 100644 --- a/src/utils/functions.js +++ b/src/utils/functions.js @@ -104,7 +104,6 @@ const renderProperties = async (param) => { } }; -// eslint-disable-next-line enact/prop-types const Parameters = ({func, params, hasReturns}) => { const [paramType, setParamType] = useState({}); const [methodReturnValue, setMethodReturnValue] = useState([]);