Skip to content

Commit

Permalink
test(action)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamspark1e committed Aug 16, 2024
1 parent bfa9ce1 commit e7f2c8b
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 7 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/cross-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release
on:
push:
branches:
- main
- feat/action-*

jobs:
release:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]
runs-on: ${{ matrix.platform }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

# - name: Install dependencies (ubuntu only)
# if: matrix.platform == 'ubuntu-20.04'
# # You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
# run: |
# sudo apt-get update
# sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev

- name: Sync node version and setup cache
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm' # Set this to npm, yarn or pnpm.

- name: Install dependencies
# If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.
run: npm install # Change this to npm, yarn or pnpm.

- name: Run Test
uses: npm test
2 changes: 2 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// ==== This vite config is only being used by unit test !! ====
import { defineConfig } from "vite";
import react from '@vitejs/plugin-react'
import UnpluginZipPack from "./src/index"
Expand All @@ -9,6 +10,7 @@ export default defineConfig(() => {
plugins: [react(), UnpluginZipPack.vite({
in: "./dist",
out: path.resolve(__dirname, 'test', 'example', 'test-result.zip'),
sep: "\\"
})],
build: {
outDir: "./dist",
Expand Down
7 changes: 0 additions & 7 deletions vitest.config.ts

This file was deleted.

0 comments on commit e7f2c8b

Please sign in to comment.