Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix kotsadm web tests in github action #892

Merged
merged 1 commit into from
Jul 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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