Skip to content

Commit

Permalink
chore: Added stitcher test runner to GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Oct 8, 2024
1 parent ef99f11 commit 4b33ec2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: Deploy VitePress site to Pages
name: Deploy docs to GitHub pages

on:
# Runs on pushes targeting the `main` branch. Change this to `master` if you're
# using the `master` branch as the default branch.
push:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
Expand All @@ -25,13 +21,13 @@ jobs:
# Build job
build:
runs-on: ubuntu-latest
name: "Build"
name: Build
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3 # Uncomment this if you're using pnpm
- uses: pnpm/action-setup@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/test-stitcher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Stitcher unit tests

on:
push:
pull_request:
workflow_dispatch:

jobs:
# Build job
build:
runs-on: ubuntu-latest
name: Build
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm --filter "stitcher" install

# Test job
test:
needs: build
runs-on: ubuntu-latest
name: Test
steps:
- name: Run unit tests
run: pnpm --filter "stitcher" test

0 comments on commit 4b33ec2

Please sign in to comment.