ci: check for shared additionally to packages

This commit is contained in:
iCrawl
2022-08-14 21:04:51 +02:00
parent 1211c7fc10
commit 90e7aea443
4 changed files with 37 additions and 17 deletions

View File

@@ -32,7 +32,6 @@ jobs:
with: with:
node-version: 16 node-version: 16
cache: 'yarn' cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install dependencies - name: Install dependencies
run: yarn --immutable run: yarn --immutable
@@ -84,7 +83,6 @@ jobs:
with: with:
node-version: 16 node-version: 16
cache: 'yarn' cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install dependencies - name: Install dependencies
run: yarn --immutable run: yarn --immutable

View File

@@ -17,7 +17,6 @@ jobs:
with: with:
node-version: 16 node-version: 16
cache: 'yarn' cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install dependencies - name: Install dependencies
run: yarn --immutable run: yarn --immutable

View File

@@ -36,7 +36,6 @@ jobs:
node-version: 16 node-version: 16
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
cache: 'yarn' cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install dependencies - name: Install dependencies
run: yarn --immutable run: yarn --immutable

View File

@@ -14,18 +14,43 @@ jobs:
id: filter id: filter
with: with:
filters: | filters: |
'@discordjs/actions': 'packages/actions' shared: &shared
'@discordjs/builders': 'packages/builders' - '!(packages)**'
'@discordjs/collection': 'packages/collection' '@discordjs/actions':
'discord.js': 'packages/discord.js' - *shared
'@discordjs/docgen': 'packages/docgen' - 'packages/actions'
'@discordjs/proxy': 'packages/proxy' '@discordjs/builders':
'@discordjs/proxy-container': 'packages/proxy-container' - *shared
'@discordjs/rest': 'packages/rest' - 'packages/builders'
'@discordjs/scripts': 'packages/scripts' '@discordjs/collection':
'@discordjs/voice': 'packages/voice' - *shared
'@discordjs/website': 'packages/website' - 'packages/collection'
'@discordjs/ws': 'packages/ws' 'discord.js':
- 'packages/discord.js'
'@discordjs/docgen':
- *shared
- 'packages/docgen'
'@discordjs/proxy':
- *shared
- 'packages/proxy'
'@discordjs/proxy-container':
- *shared
- 'packages/proxy-container'
'@discordjs/rest':
- *shared
- 'packages/rest'
'@discordjs/scripts':
- *shared
- 'packages/scripts'
'@discordjs/voice':
- *shared
- 'packages/voice'
'@discordjs/website':
- *shared
- 'packages/website'
'@discordjs/ws':
- *shared
- 'packages/ws'
tests: tests:
name: Tests name: Tests
@@ -43,7 +68,6 @@ jobs:
with: with:
node-version: 16 node-version: 16
cache: 'yarn' cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install dependencies - name: Install dependencies
run: yarn workspaces focus ${{ matrix.package }} run: yarn workspaces focus ${{ matrix.package }}