Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try 1 #11018

Closed
wants to merge 11 commits into from
Closed

Try 1 #11018

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,32 @@
name: Build
name: Testing Build

on: [push]
on:
pull_request:
types:
- opened
- synchronize
- closed

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install
run: yarn --no-progress --non-interactive --no-lockfile
- name: Build
run: yarn build
env:
GITHUB_PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36 changes: 0 additions & 36 deletions .github/workflows/integration.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/lint.yml

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"alex": "^8.2.0",
"asset-compare-git-webpack-plugin": "https://github.com/supriya-raj/asset-compare-git-webpack-plugin#1a8c2fe3acbb049b050fae9deb5ab3733af3791d",
"eslint": "^7.11.0",
"execa": "1.0.0",
"fs-extra": "^9.0.1",
Expand Down
2 changes: 2 additions & 0 deletions packages/react-scripts/bin/react-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ process.on('unhandledRejection', err => {
throw err;
});

console.log(process.env);

const spawn = require('react-dev-utils/crossSpawn');
const args = process.argv.slice(2);

Expand Down
4 changes: 4 additions & 0 deletions packages/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
// @remove-on-eject-end
'use strict';

const AssetComparePlugin = require('asset-compare-git-webpack-plugin');
const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
Expand Down Expand Up @@ -788,6 +789,9 @@ module.exports = function (webpackEnv) {
},
},
}),
new AssetComparePlugin({
gist_id: '3372502a4187b06e810e07f1b20b6d24',
}),
].filter(Boolean),
// Some libraries import Node modules but don't use them in the browser.
// Tell webpack to provide empty mocks for them so importing them works.
Expand Down
1 change: 1 addition & 0 deletions webpack-asset-sizes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"name":"index.html","size":3034},{"name":"main","size":943},{"name":"static/js/2.49c628d1.chunk.js","size":131280},{"name":"static/js/2.49c628d1.chunk.js.LICENSE.txt","size":1043},{"name":"static/js/3.4fd48114.chunk.js","size":4398},{"name":"main","size":1047},{"name":"runtime-main","size":2374}]
1 change: 1 addition & 0 deletions webpack-asset-stats.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"name":"index.html","size":3034},{"name":"main","size":943},{"name":"static/js/2.49c628d1.chunk.js","size":131280},{"name":"static/js/2.49c628d1.chunk.js.LICENSE.txt","size":1043},{"name":"static/js/3.4fd48114.chunk.js","size":4398},{"name":"main","size":1047},{"name":"runtime-main","size":2374}]