Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: setup monorepo #521

Merged
merged 1 commit into from
May 12, 2024
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
6 changes: 3 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = {
'error',
{
convertPath: {
'lib/*.ts': ['^lib/(.+?)\\.ts$', 'dist/$1.js'],
'src/*.ts': ['^src/(.+?)\\.ts$', 'dist/$1.js'],
},
},
],
Expand All @@ -56,14 +56,14 @@ module.exports = {
},
},
{
files: ['ci/**', 'repositories/**'],
files: ['packages/repositories/**'],
rules: {
'node/no-unpublished-require': 'off',
'node/no-unpublished-import': 'off',
},
},
{
files: ['*config*', 'ci/**', 'test/**/*.ts*', '*.js'],
files: ['*config*', 'packages/**/test/**/*.ts*', '*.js'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
Expand Down
50 changes: 0 additions & 50 deletions .github/actions/smoke-test/action.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/all-plugins.yml

This file was deleted.

12 changes: 3 additions & 9 deletions .github/workflows/check-for-private-repositories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,10 @@ jobs:
with:
node-version: 20

- run: |
- name: Install & Build
run: |
pnpm install
pnpm build
name: Install & build eslint-remote-tester

- run: |
pnpm install
pnpm build
name: Install eslint-remote-tester-repositories
working-directory: ./repositories

- run: pnpm filter:private
working-directory: ./repositories
working-directory: ./packages/repositories
69 changes: 5 additions & 64 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
pull_request:
workflow_dispatch:

jobs:
build-and-lint:
Expand All @@ -14,17 +15,11 @@ jobs:

- uses: ./.github/actions/setup-and-cache

- name: Install & build eslint-remote-tester
- name: Install & Build
run: |
pnpm install
pnpm build

- name: Install eslint-remote-tester-repositories dependencies
run: |
pnpm install
pnpm build
working-directory: ./repositories

- name: Lint
run: pnpm lint

Expand All @@ -40,7 +35,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Install & build eslint-remote-tester
- name: Install & Build
run: |
pnpm install
pnpm build
Expand All @@ -60,7 +55,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Install & build eslint-remote-tester
- name: Install & Build
run: |
pnpm install
pnpm build
Expand All @@ -80,64 +75,10 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Install & build eslint-remote-tester
- name: Install & Build
run: |
pnpm install
pnpm build

- name: Run smoke tests
run: pnpm test:smoke

repositories-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/setup-and-cache
with:
node-version: ${{ matrix.node-version }}

- name: Install & build eslint-remote-tester
run: pnpm install

- name: Install eslint-remote-tester-repositories
run: pnpm install
working-directory: ./repositories

- name: Run repositories tests
run: pnpm test
working-directory: ./repositories

ci-runner-test:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/setup-and-cache

- name: Install & build eslint-remote-tester
run: |
pnpm install
pnpm build

- name: Install & build eslint-remote-tester-repositories
run: |
pnpm install
pnpm build
rm -rf ./node_modules
working-directory: ./repositories

- name: Cleanup
run: rm -rf ./node_modules

- name: Install ci-runner
run: pnpm install
working-directory: ./ci

- name: Test ci-runner
run: pnpm generate
working-directory: ./ci
22 changes: 0 additions & 22 deletions .github/workflows/lint-eslint-config-airbnb.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/lint-eslint-core-ts.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/lint-eslint-core.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/lint-eslint-plugin-cypress.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/lint-eslint-plugin-import.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/lint-eslint-plugin-jest-dom.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/lint-eslint-plugin-jest.yml

This file was deleted.

Loading