Skip to content

Commit

Permalink
fix kotsadm web tests in github action (#892)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Jul 31, 2020
1 parent 59c870a commit 91a8839
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yaml
Expand Up @@ -102,10 +102,10 @@ jobs:

- run: chmod +x bin/kots


- uses: actions/setup-node@v1
with:
node-version: '10.x'

- name: setup testIM
run: npm i -g @testim/testim-cli
shell: bash
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/kotsadm.yaml
Expand Up @@ -134,15 +134,23 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/setup-node@v2.1.1
with:
node-version: '10'

- name: Install cross-env
run: npm i -g cross-env
shell: bash

- name: Test web
env:
PACT_BROKER_USERNAME: ${{ secrets.PACT_BROKER_USERNAME }}
PACT_BROKER_PASSWORD: ${{ secrets.PACT_BROKER_PASSWORD }}
run: |
# TODO: Remove '|| true' when web test works
make -C kotsadm/web deps test || true
yarn run publish:pact || true
make -C kotsadm/web deps test publish-pact
# TODO: migrate retry logic for pacts
# retry:
# automatic:
Expand Down
4 changes: 4 additions & 0 deletions kotsadm/web/Makefile
Expand Up @@ -13,6 +13,10 @@ endif
deps:
yarn --silent --frozen-lockfile

.PHONY: publish-pact
publish-pact:
yarn run publish:pact

.PHONY: clean
clean:
rm -rf node_modules
Expand Down

0 comments on commit 91a8839

Please sign in to comment.