release: 1.3.6 #719
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
# remove macos temporarily | |
os: [ubuntu-latest,windows-latest] | |
node_version: [18,20] | |
fail-fast: false | |
name: 'Build&Test: node-${{ matrix.node_version }}, ${{ matrix.os }}' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Cache pnpm modules | |
uses: actions/cache@v4 | |
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@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
- name: Set node version to 18 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: Install deps | |
run: pnpm install | |
- name: Prepare | |
run: pnpm run build | |
- name: Lint | |
run: pnpm run lint |