Skip to content

Commit

Permalink
chore: setup monorepo (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed May 12, 2024
1 parent b20e4ad commit 91f2560
Show file tree
Hide file tree
Showing 151 changed files with 417 additions and 4,130 deletions.
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.

0 comments on commit 91f2560

Please sign in to comment.