From bd0886a9b33c26aed1039901bbbea6522823be0b Mon Sep 17 00:00:00 2001 From: Bart Stefanski Date: Fri, 21 Apr 2023 12:35:39 +0200 Subject: [PATCH] chore: setup smoke & acceptance testing --- .github/workflows/check.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f30b9fa..2186a5c 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,6 +1,6 @@ name: Check -on: +on: pull_request: workflow_dispatch: @@ -15,7 +15,17 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ env.node_version }} - - run: yarn install --frozen-lockfile - - run: yarn lint - - run: yarn prettier - - run: yarn test \ No newline at end of file + - name: Install dependencies + run: yarn install --frozen-lockfile + - name: Lint check + run: yarn lint + - name: Format check + run: yarn prettier + - name: Unit & Integration tests + run: yarn test + - name: Smoke & Acceptance tests + run: + - yarn build-storybook --quiet + - npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ + "npx http-server storybook-static --port 6006 --silent" \ + "npx wait-on tcp:6006 && yarn test-storybook"