Skip to content
Closed
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
38 changes: 38 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,21 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: '12.19'
- name: Configure for public registry
run: |
yarn config set registry https://registry.npmjs.org/
npm config set registry https://registry.npmjs.org/
yarn config set strict-ssl false
yarn config set httpTimeout 600000
env:
NODE_TLS_REJECT_UNAUTHORIZED: '0'
- name: Run tests
run: |
yarn install
npm test -- --coverage;
working-directory: ./client
env:
NODE_TLS_REJECT_UNAUTHORIZED: '0'
server-test:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') }}
Expand All @@ -37,12 +47,27 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: '12.19'
- name: Configure for public registry
run: |
yarn config set registry https://registry.npmjs.org/
npm config set registry https://registry.npmjs.org/
yarn config set strict-ssl false
yarn config set httpTimeout 600000
env:
NODE_TLS_REJECT_UNAUTHORIZED: '0'
- name: Install client dependencies for build
run: yarn install
working-directory: ./client
env:
NODE_TLS_REJECT_UNAUTHORIZED: '0'
- name: Run tests and build
run: |
yarn install
npm run build
npm test
working-directory: ./server
env:
NODE_TLS_REJECT_UNAUTHORIZED: '0'
semantic-release:
runs-on: ubuntu-latest
needs: [client-test, server-test]
Expand All @@ -55,11 +80,23 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: '12.19'
- name: Configure for public registry
run: |
yarn config set registry https://registry.npmjs.org/
npm config set registry https://registry.npmjs.org/
yarn config set strict-ssl false
yarn config set httpTimeout 600000
env:
NODE_TLS_REJECT_UNAUTHORIZED: '0'
- name: Install aio
run: npm install -g @adobe/aio-cli@8.2.0
env:
NODE_TLS_REJECT_UNAUTHORIZED: '0'
- name: Install client dependencies
run: yarn install
working-directory: ./client
env:
NODE_TLS_REJECT_UNAUTHORIZED: '0'
- name: Run build and semantic release
run: |
yarn install
Expand All @@ -69,3 +106,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.ADOBE_BOT_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
NODE_TLS_REJECT_UNAUTHORIZED: '0'
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@
"ace-builds": "<rootDir>/node_modules/ace-builds"
}
},
"proxy": "http://localhost:9001"
"proxy": "http://localhost:9000"
}
Loading
Loading