Skip to content

Commit

Permalink
Merge pull request #6 from garydavisonos/task/gd/unit-test
Browse files Browse the repository at this point in the history
Task/gd/unit test
  • Loading branch information
garydavisonos authored Jan 24, 2025
2 parents be6d98b + 3a71c73 commit acc53b2
Show file tree
Hide file tree
Showing 6 changed files with 6,325 additions and 481 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Publish to npm 🚀"

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest

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

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org/"

- name: Install dependencies
run: npm ci --legacy-peer-deps

- name: Run tests
run: npm run test

- name: Build project
run: npm run build

- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default {
preset: "ts-jest",
testEnvironment: "node",
testMatch: ["**/__tests__/**/*.ts", "**/?(*.)+(spec|test).ts"],
};
Loading

0 comments on commit acc53b2

Please sign in to comment.