-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/scientist-softserv/webstore …
…into upstream-updates-12-18-2023
- Loading branch information
Showing
12 changed files
with
271 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: 'Build Test Lint' | ||
run-name: Build Test Lint of ${{ github.ref_name }} by @${{ github.actor }} | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
inputs: | ||
debug_enabled: | ||
type: boolean | ||
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' | ||
required: false | ||
default: false | ||
|
||
jobs: | ||
build: | ||
uses: scientist-softserv/actions/.github/workflows/[email protected] | ||
secrets: inherit | ||
with: | ||
platforms: 'linux/amd64' | ||
webTarget: web | ||
cypress: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Cypress e2e | ||
uses: cypress-io/github-action@v6 | ||
with: | ||
start: yarn start | ||
wait-on: 'http://localhost:3000' | ||
eslint: | ||
needs: build | ||
uses: scientist-softserv/actions/.github/workflows/[email protected] | ||
with: | ||
lint_cmd: docker compose run web sh -c 'yarn && yarn lint' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,8 @@ node_modules/ | |
|
||
# Emacs | ||
*.~undo-tree~ | ||
|
||
# Cypress | ||
cypress/results | ||
cypress/screenshots | ||
cypress/videos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,57 @@ | ||
// This guard clause allows the app to still build in the event another exception handler will be used, | ||
// or the sentry project hasn't been set up yet | ||
if (!process.env.SENTRY_DSN) return | ||
|
||
// This file sets a custom webpack configuration to use your Next.js app | ||
// with Sentry. | ||
// https://nextjs.org/docs/api-reference/next.config.js/introduction | ||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/ | ||
const { withSentryConfig } = require('@sentry/nextjs') | ||
const SENTRY_DSN = process.env.SENTRY_DSN | ||
|
||
const nextConfig = { | ||
let nextConfig = { | ||
output: 'standalone', | ||
reactStrictMode: true, | ||
swcMinify: true, | ||
eslint: { | ||
dirs: ['pages', 'utils'], // Only run ESLint on the 'pages' and 'utils' directories during production builds | ||
}, | ||
sentry: { | ||
// Use `hidden-source-map` rather than `source-map` as the Webpack `devtool` | ||
// for client-side builds. (This will be the default starting in | ||
// `@sentry/nextjs` version 8.0.0.) See | ||
// https://webpack.js.org/configuration/devtool/ and | ||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#use-hidden-source-map | ||
// for more information. | ||
hideSourceMaps: true, | ||
// Warning: This allows production builds to successfully complete even if | ||
// your project has ESLint errors. | ||
// ref: https://nextjs.org/docs/pages/api-reference/next-config-js/eslint | ||
ignoreDuringBuilds: true, | ||
}, | ||
} | ||
|
||
const sentryWebpackPluginOptions = { | ||
// Additional config options for the Sentry Webpack plugin. Keep in mind that | ||
// the following options are set automatically, and overriding them is not | ||
// recommended: | ||
// release, url, configFile, stripPrefix, urlPrefix, include, ignore | ||
|
||
silent: true, // Suppresses all logs | ||
project: process.env.SENTRY_PROJECT, | ||
org: process.env.SENTRY_ORG, | ||
authToken: process.env.SENTRY_AUTH_TOKEN, | ||
// For all available options, see: | ||
// https://github.com/getsentry/sentry-webpack-plugin#options. | ||
} | ||
module.exports = nextConfig | ||
|
||
// Make sure adding Sentry options is the last code to run before exporting, to | ||
// ensure that your source maps include changes from all other Webpack plugins | ||
module.exports = withSentryConfig( | ||
nextConfig, | ||
sentryWebpackPluginOptions | ||
) | ||
let sentryWebpackPluginOptions = {} | ||
if (SENTRY_DSN) { | ||
nextConfig = { | ||
...nextConfig, | ||
sentry: { | ||
// Use `hidden-source-map` rather than `source-map` as the Webpack `devtool` | ||
// for client-side builds. (This will be the default starting in | ||
// `@sentry/nextjs` version 8.0.0.) See | ||
// https://webpack.js.org/configuration/devtool/ and | ||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#use-hidden-source-map | ||
// for more information. | ||
hideSourceMaps: true, | ||
}, | ||
} | ||
|
||
sentryWebpackPluginOptions = { | ||
// Additional config options for the Sentry Webpack plugin. Keep in mind that | ||
// the following options are set automatically, and overriding them is not | ||
// recommended: | ||
// release, url, configFile, stripPrefix, urlPrefix, include, ignore | ||
|
||
silent: true, // Suppresses all logs | ||
project: process.env.SENTRY_PROJECT, | ||
org: process.env.SENTRY_ORG, | ||
authToken: process.env.SENTRY_AUTH_TOKEN, | ||
// For all available options, see: | ||
// https://github.com/getsentry/sentry-webpack-plugin#options | ||
} | ||
|
||
module.exports = withSentryConfig( | ||
nextConfig, | ||
sentryWebpackPluginOptions | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.