Skip to content

Commit

Permalink
add test job
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Oct 30, 2019
1 parent 6bd481a commit b48c880
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
}),
},
],
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b48c880

Please sign in to comment.