Skip to content
Open
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
21 changes: 21 additions & 0 deletions .github/workflows/ci-branch.yml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions .github/workflows/ci-pull-request.yml
Original file line number Diff line number Diff line change
@@ -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
53 changes: 53 additions & 0 deletions .github/workflows/ci-reusable.yml
Original file line number Diff line number Diff line change
@@ -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
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
},
Expand Down
1 change: 0 additions & 1 deletion src/components/DocParse.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ function parseChildren (parent) {
}
}

// eslint-disable-next-line enact/prop-types
function DocParse ({children, component: Component = 'div', ...rest}) {
return (
<Component {...rest}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/DocsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}) => (
<StaticQuery
query={graphql`
Expand Down
1 change: 0 additions & 1 deletion src/components/SmartLink/SmartLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {OutboundLink} from 'gatsby-plugin-google-gtag';
import PropTypes from 'prop-types';
import {useLocation} from '@reach/router';

// eslint-disable-next-line enact/prop-types
function LocationLink ({to, ...rest}) {
const parts = to.split('#');
const location = useLocation();
Expand Down
1 change: 0 additions & 1 deletion src/components/TreeNav/TreeNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ const renderItem = (itemProps) => {
);
};

// eslint-disable-next-line enact/prop-types
const renderSection = ({title, active, children, to}) => {
const uniqueKey = title.replace(/\s/, '');
return (
Expand Down
4 changes: 2 additions & 2 deletions src/html.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand All @@ -19,7 +19,7 @@ export default function HTML (props) {
<div
key={`body`}
id="___gatsby"
dangerouslySetInnerHTML={{ __html: props.body }}
dangerouslySetInnerHTML={{__html: props.body}}
/>
{props.postBodyComponents}
</body>
Expand Down
1 change: 0 additions & 1 deletion src/utils/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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([]);
Expand Down
Loading