diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 89146ec..b784c4b 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -9,7 +9,7 @@ on: jobs: test: name: Test - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v4 @@ -17,8 +17,8 @@ jobs: - name: Set up Node uses: actions/setup-node@v3 with: - node-version: "18" - cache: "yarn" + node-version: '18' + cache: 'yarn' - name: Install Dependencies run: yarn install --frozen-lockfile @@ -33,11 +33,11 @@ jobs: build: name: Build - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 needs: [test] strategy: matrix: - node-version: ["16", "18", "current"] + node-version: ['18', '20', 'current'] steps: - name: Checkout @@ -47,7 +47,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - cache: "yarn" + cache: 'yarn' - name: Install Dependencies run: yarn install --frozen-lockfile @@ -58,7 +58,7 @@ jobs: automerge: name: Merge Automatically needs: [test, build] - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 permissions: pull-requests: write diff --git a/.github/workflows/quality.yaml b/.github/workflows/quality.yaml index 1f592a9..f872930 100644 --- a/.github/workflows/quality.yaml +++ b/.github/workflows/quality.yaml @@ -7,9 +7,9 @@ on: pull_request: jobs: - eslint: - name: ESLint - runs-on: ubuntu-20.04 + prettier: + name: Prettier + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v4 @@ -17,23 +17,22 @@ jobs: - name: Set up Node uses: actions/setup-node@v3 with: - node-version: "18" - cache: "yarn" + node-version: '18' + cache: 'yarn' - name: Install Dependencies run: yarn install --frozen-lockfile - - name: Run ESLint + - name: Run Prettier uses: wearerequired/lint-action@v2 with: - check_name: ESLint Results - eslint: true - eslint_dir: src - eslint_extensions: tsx + check_name: Prettier Results + prettier: true + prettier_dir: src - prettier: - name: Prettier - runs-on: ubuntu-20.04 + eslint: + name: ESLint + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v4 @@ -41,15 +40,16 @@ jobs: - name: Set up Node uses: actions/setup-node@v3 with: - node-version: "18" - cache: "yarn" + node-version: '18' + cache: 'yarn' - name: Install Dependencies run: yarn install --frozen-lockfile - - name: Run Prettier + - name: Run ESLint uses: wearerequired/lint-action@v2 with: - check_name: Prettier Results - prettier: true - prettier_dir: src + check_name: ESLint Results + eslint: true + eslint_extensions: ts,tsx,js,jsx + eslint_dir: src diff --git a/src/__mocks__/react-markdown.js b/src/__mocks__/react-markdown.js index 3f57155..47e9e9f 100644 --- a/src/__mocks__/react-markdown.js +++ b/src/__mocks__/react-markdown.js @@ -1,4 +1,4 @@ -// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types +// eslint-disable-next-line react/prop-types export default function ReactMarkdown({ children }) { return <>{children} }