Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: replace enums in favour of pojos #72

Merged
merged 18 commits into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Check CH5 Joins

on:
schedule:
- cron: "0 0 * * *"

workflow_dispatch:

jobs:
check:
name: Check the current joins with the latest joins

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Setup PNPM
uses: pnpm/action-setup@v3
with:
version: 8

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm

- name: Install Dependencies
run: pnpm install

- name: Run Check
run: pnpm vitest tests/check.test.ts
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: CI

on:
push:
branches: [master, develop]

pull_request:
branches: [master, develop]
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
name: size
name: Size Limit

on: [pull_request]

jobs:
size:
runs-on: ubuntu-latest

env:
CI_JOB_NUMBER: 1

steps:
- uses: actions/checkout@v4
- uses: andresz1/size-limit-action@v1
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Setup PNPM
uses: pnpm/action-setup@v3
with:
version: 8

- name: Size Limit
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
],
"license": "MIT",
"main": "dist/index.js",
"module": "dist/crestron-ch5-helper.esm.js",
"typings": "dist/index.d.ts",
"type": "module",
"repository": {
Expand Down Expand Up @@ -45,34 +44,35 @@
},
"size-limit": [
{
"path": "dist/crestron-ch5-helper.cjs.production.min.js",
"path": "dist/index.cjs",
"limit": "10 KB"
},
{
"path": "dist/crestron-ch5-helper.esm.js",
"path": "dist/index.js",
"limit": "10 KB"
}
],
"devDependencies": {
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.2",
"@norgate-av/ch5-join-getter": "^1.0.1",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@size-limit/preset-small-lib": "^11.0.2",
"@types/node": "^20.11.19",
"@types/node": "^20.11.20",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"all-contributors-cli": "^6.20.0",
"cz-conventional-changelog": "3.3.0",
"doctoc": "^2.1.0",
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"rimraf": "^5.0.5",
"semantic-release": "^23.0.2",
"size-limit": "^11.0.2",
"terser": "^5.27.2",
"terser": "^5.28.1",
"tsup": "^8.0.2",
"typescript": "^5.3.3",
"vitest": "^1.3.1"
Expand Down
Loading
Loading