Skip to content

Commit

Permalink
build: Add .circleci/config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vio committed Jan 22, 2021
1 parent cc93c41 commit 4f7cf3e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
jobs:
test:
executor:
name: node/default
tag: '10.23'
steps:
- checkout
- node/install-packages
- run:
command: npm run build
- run:
command: npm run lint
- run:
command: npm run test
orbs:
node: circleci/node@4.1.0
version: 2.1
workflows:
test_my_app:
jobs:
- test
6 changes: 6 additions & 0 deletions test/webpack-plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ const ENV_DEFAULT = {
CIRCLE_BRANCH: 'master',
CIRCLE_PROJECT_USERNAME: 'organization',
CIRCLE_PROJECT_REPONAME: 'project',
CIRCLE_BUILD_URL: '#',
CIRCLE_BUILD_NUM: 123,
CIRCLE_PR_NUMBER: 10,
};

const MOCK_RESULT = {
Expand Down Expand Up @@ -48,6 +51,9 @@ const getMockRequest = (customPayload) => ({
job: {
commit: 'abcd1234',
branch: 'master',
prNumber: '10',
buildNumber: '123',
buildUrl: '#',
},
rawData: {
webpack: {
Expand Down

0 comments on commit 4f7cf3e

Please sign in to comment.