chore(deps): do not run code lint/format on renovate PRs and do not run linter during builds
This commit is contained in:
@@ -38,6 +38,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
formatting:
|
formatting:
|
||||||
name: Code formatting
|
name: Code formatting
|
||||||
|
if: github.actor != 'renovate[bot]'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@@ -133,6 +134,7 @@ jobs:
|
|||||||
|
|
||||||
unused-code:
|
unused-code:
|
||||||
name: Test for unused code
|
name: Test for unused code
|
||||||
|
if: github.actor != 'renovate[bot]'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@@ -197,7 +199,7 @@ jobs:
|
|||||||
web-bundle:
|
web-bundle:
|
||||||
name: Build and bundle web project
|
name: Build and bundle web project
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'owncast/owncast'
|
if: github.repository == 'owncast/owncast' && !cancelled()
|
||||||
needs: [formatting, unused-code]
|
needs: [formatting, unused-code]
|
||||||
steps:
|
steps:
|
||||||
- id: skip_check
|
- id: skip_check
|
||||||
|
|||||||
@@ -59,6 +59,9 @@ module.exports = async phase => {
|
|||||||
productionBrowserSourceMaps: process.env.SOURCE_MAPS === 'true',
|
productionBrowserSourceMaps: process.env.SOURCE_MAPS === 'true',
|
||||||
trailingSlash: true,
|
trailingSlash: true,
|
||||||
reactStrictMode: true,
|
reactStrictMode: true,
|
||||||
|
eslint: {
|
||||||
|
ignoreDuringBuilds: true,
|
||||||
|
},
|
||||||
images: {
|
images: {
|
||||||
unoptimized: true,
|
unoptimized: true,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user