Skip to content

Commit

Permalink
chore: Adds test check for all PRs and main
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodedrift committed Dec 4, 2024
1 parent 4ed6323 commit 07203cc
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Prepare Changeset

on:
push:
Expand All @@ -11,8 +11,8 @@ env:
concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
changeset:
name: Update Changeset
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Run Tests

on:
push:
branches:
- main
pull_request:
branches:
- main
types:
- opened
- reopened
- edited
- synchronize

env:
HUSKY: 0 # Disables husky hooks

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
test:
name: Run All Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Setup Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Run Test Suite
run: pnpm test

0 comments on commit 07203cc

Please sign in to comment.