Skip to content

Commit

Permalink
Merge pull request #159 from bosonprotocol/ignore-build-warnings
Browse files Browse the repository at this point in the history
chore: ignore build warnings + add build on PR pipeline
  • Loading branch information
levalleux-ludo authored Jun 12, 2024
2 parents 04a93ab + cc93a73 commit 083d743
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@ jobs:
- run: echo "name=$(git describe --tags)" >> $GITHUB_OUTPUT
id: name

call-reusable-workflow-PR:
uses: ./.github/workflows/ci_reusable.yaml
if: github.event_name == 'pull_request'
needs: prejob
with:
ENV_NAME: "staging"
REACT_APP_ENV_NAME: "staging"
DEPLOY_TO_FLEEK: false
REACT_APP_RELEASE_TAG: ${{ needs.prejob.outputs.releaseTag }}
REACT_APP_RELEASE_NAME: ${{ needs.prejob.outputs.releaseName }}
REACT_APP_META_TX_API_KEY_MAP: ${{ vars.REACT_APP_META_TX_API_KEY_MAP }}
REACT_APP_META_TX_API_IDS_MAP: ${{ vars.REACT_APP_META_TX_API_IDS_MAP }}
secrets:
FLEEK_API_KEY: ${{ secrets.FLEEK_API_KEY }}
REACT_APP_INFURA_IPFS_PROJECT_ID: ${{ secrets.REACT_APP_INFURA_IPFS_PROJECT_ID }}
REACT_APP_INFURA_IPFS_PROJECT_SECRET: ${{ secrets.REACT_APP_INFURA_IPFS_PROJECT_SECRET }}
REACT_APP_WALLET_CONNECT_PROJECT_ID: ${{ secrets.REACT_APP_WALLET_CONNECT_PROJECT_ID_STAGING }}
REACT_APP_MAGIC_API_KEY: ${{ secrets.REACT_APP_MAGIC_API_KEY_STAGING }}
REACT_APP_INFURA_KEY: ${{ secrets.REACT_APP_INFURA_KEY_STAGING }}

call-reusable-workflow-staging:
uses: ./.github/workflows/ci_reusable.yaml
if: github.event_name == 'release' && github.event.action == 'created'
Expand Down
7 changes: 7 additions & 0 deletions config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ const devServerConfig = () => (config) => {
module.exports = {
// The Webpack config to use when compiling your react app for development or production.
webpack: override(
(config) => {
config.ignoreWarnings = [
/Failed to parse source map/,
/Critical dependency: Accessing import\.meta directly is unsupported \(only property access or destructuring is supported\)/
];
return config;
},
addWebpackResolve({
fallback: {
crypto: require.resolve("crypto-browserify"),
Expand Down

0 comments on commit 083d743

Please sign in to comment.