Skip to content

feat: adds a workaround for a safari bug when loading modules async #693

feat: adds a workaround for a safari bug when loading modules async

feat: adds a workaround for a safari bug when loading modules async #693

Workflow file for this run

name: CI
on:
push:
branches:
- '**'
pull_request:
branches:
- main
# Declare default permissions as read only.
permissions: read-all
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest,macos-latest,windows-latest]
node_version: [16,18]
fail-fast: false
name: 'Build&Test: node-${{ matrix.node_version }}, ${{ matrix.os }}'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
cache: 'pnpm'
- name: Install deps
run: pnpm install
- name: Build vite-plugin-federation
run: pnpm run build
- name: Unit test
run: pnpm run 'test:unit'
- name: Dev mode e2e test
run: pnpm run 'test:e2e-dev'
- name: Serve mode e2e test
run: pnpm run 'test:e2e-serve'
lint:
runs-on: ubuntu-latest
name: 'Lint: node-18, ubuntu-latest'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Set node version to 18
uses: actions/setup-node@v2
with:
node-version: 18
cache: 'pnpm'
- name: Install deps
run: pnpm install
- name: Prepare
run: pnpm run build
- name: Lint
run: pnpm run lint