Skip to content

Commit

Permalink
Add test workflow to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Oct 8, 2024
1 parent d3977ab commit 77e8d74
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Release
env:
DEBUG: napi:*
APP_NAME: unplugin-parcel-macros
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Test

on:
push:

permissions:
contents: read

jobs:
test:
name: (${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Setup node
uses: actions/setup-node@v4
- name: Install
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
.cargo-cache
target/
key: ${{ matrix.settings.target }}-cargo-${{ matrix.settings.host }}
- name: Install dependencies
run: yarn install
- run: yarn build
- name: Next.js
run: |
cd examples/next
yarn
yarn build
- name: Vite
run: |
cd examples/vite
yarn
yarn build

0 comments on commit 77e8d74

Please sign in to comment.