Merge pull request #2479 from automatisch/aut-1372
chore(web): do not run eslint when APP_ENV=test
This commit is contained in:
2
.github/workflows/playwright.yml
vendored
2
.github/workflows/playwright.yml
vendored
@@ -88,7 +88,7 @@ jobs:
|
|||||||
working-directory: ./packages/e2e-tests
|
working-directory: ./packages/e2e-tests
|
||||||
if: steps.playwright-cache.outputs.cache-hit != 'true'
|
if: steps.playwright-cache.outputs.cache-hit != 'true'
|
||||||
- name: Build Automatisch web
|
- name: Build Automatisch web
|
||||||
run: yarn build
|
run: APP_ENV=test yarn build
|
||||||
env:
|
env:
|
||||||
# Keep this until we clean up warnings in build processes
|
# Keep this until we clean up warnings in build processes
|
||||||
CI: false
|
CI: false
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export default defineConfig(() => {
|
|||||||
plugins: ['@emotion/babel-plugin'],
|
plugins: ['@emotion/babel-plugin'],
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
{
|
process.env.APP_ENV !== 'test' && {
|
||||||
...eslint({
|
...eslint({
|
||||||
include: ['src/**/*.js', 'src/**/*.jsx'],
|
include: ['src/**/*.js', 'src/**/*.jsx'],
|
||||||
}),
|
}),
|
||||||
@@ -34,7 +34,7 @@ export default defineConfig(() => {
|
|||||||
apply: 'serve',
|
apply: 'serve',
|
||||||
enforce: 'post',
|
enforce: 'post',
|
||||||
},
|
},
|
||||||
],
|
].filter(Boolean),
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
components: path.resolve(__dirname, './src/components'),
|
components: path.resolve(__dirname, './src/components'),
|
||||||
|
|||||||
Reference in New Issue
Block a user