From b48c880dde938c1909870f1c5a3dcb3d728eab2c Mon Sep 17 00:00:00 2001 From: Chris Thoburn Date: Wed, 30 Oct 2019 02:24:16 +0100 Subject: [PATCH] add test job --- .eslintrc.js | 5 +++-- .github/workflows/main.yml | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 7e48e4c8a6d..0918e88d691 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -56,7 +56,7 @@ module.exports = { '.mocharc.js', '.eslintrc.js', '.prettierrc.js', - 'bin/*', + 'bin/**', 'packages/private-build-infra/src/**/*.js', 'packages/unpublished-test-infra/src/**/*.js', 'packages/*/.ember-cli.js', @@ -108,12 +108,13 @@ module.exports = { // bin files { - files: ['bin/*'], + files: ['bin/**'], // eslint-disable-next-line node/no-unpublished-require rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, { 'no-console': 'off', 'no-process-exit': 'off', 'node/no-unpublished-require': 'off', + 'node/no-unsupported-features/node-builtins': 'off', }), }, ], diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bbb49682794..47a81bced12 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -77,6 +77,21 @@ jobs: - name: Basic Tests run: yarn test + asset-size-check: + needs: [lint, basic-tests] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: actions/setup-node@v1 + with: + node-version: 12.x + - name: Install dependencies + run: yarn install + - name: Build For Production + run: yarn workspace ember-data ember build -e production + - name: Test Asset Sizes + run: node ./bin/asset-size-tracking/generate-diff.js + lts: needs: [lint, basic-tests] strategy: