chore: setup smoke & acceptance testing

This commit is contained in:
Bart Stefanski 2023-04-21 12:35:39 +02:00
parent 474a3dc1fb
commit bd0886a9b3

View file

@ -15,7 +15,17 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: ${{ env.node_version }} node-version: ${{ env.node_version }}
- run: yarn install --frozen-lockfile - name: Install dependencies
- run: yarn lint run: yarn install --frozen-lockfile
- run: yarn prettier - name: Lint check
- run: yarn test 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"