Skip to content

CU-8678g1znh - nwm: encrypt, decrypt and decryptFromArray WC's methods #19

CU-8678g1znh - nwm: encrypt, decrypt and decryptFromArray WC's methods

CU-8678g1znh - nwm: encrypt, decrypt and decryptFromArray WC's methods #19

name: Check Build and Test
on:
pull_request:
branches:
- main
env:
NODE_VERSION: 16.x
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup Node Version ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install PNPM
run: npm install -g pnpm
- name: Install RushJS
run: npm install -g @microsoft/rush
- name: Install Yarn
run: npm install --global yarn
- name: Verify Change Logs
run: rush change --verify
- name: Install Dependencies
run: rush update
- name: Build Projects
run: rush rebuild --verbose
- name: Install Examples Dependencies
working-directory: ./examples
run: |
for dir in */; do
if [ -d "$dir" ]; then
(cd "$dir" && yarn install && yarn build && yarn playwright install)
fi
done
- name: Run E2E Tests
working-directory: ./examples
run: |
yarn global add serve
for dir in */; do
if [ -d "$dir" ]; then
(cd "$dir" && yarn test:e2e:headless)
fi
done