Skip to content

🔖 Bump patch version 5.3.2 #165

🔖 Bump patch version 5.3.2

🔖 Bump patch version 5.3.2 #165

Workflow file for this run

name: Build | Test
on:
push:
branches: ["master", "develop"]
pull_request:
branches: ["master", "develop"]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
run: npm install -g pnpm@8
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: |
${{ env.STORE_PATH }}
/home/runner/.cache/Cypress
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
# Install dependences
- name: Install Dependencies and build
run: |
make install
make prod
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: artifact-dist
path: dist/
test-unit:
needs: build
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: artifact-dist
path: dist/
- name: Install pnpm
run: npm install -g pnpm@8
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Restored cached PNPM path
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
# will use pnpm's cache to install
run: make install
- name: Unit Tests
run: make test-unit
test-e2e:
needs: build
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: artifact-dist
path: dist/
- name: Install pnpm
run: npm install -g pnpm@8
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Restored cached node modules
uses: actions/cache@v4
with:
path: |
${{ env.STORE_PATH }}
/home/runner/.cache/Cypress
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: make install
# start: make prod
browser: chrome