Skip to content

Commit

Permalink
Updated libraries & fixed import (#28)
Browse files Browse the repository at this point in the history
* Updated libraries & fixed import
* Added Mise
* Fixed test running
* Added dependency installation
* Updated Checkout steps
* Updated Lint Action
  • Loading branch information
CEbbinghaus committed Sep 4, 2024
1 parent a29fa0f commit de65f03
Show file tree
Hide file tree
Showing 8 changed files with 3,320 additions and 2,590 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ jobs:
run:
working-directory: docs
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: latest
- name: Install Tools
uses: jdx/mise-action@v2

- name: Install Dependencies
run: pnpm install --prefer-offline --frozen-lockfile
Expand Down
59 changes: 19 additions & 40 deletions .github/workflows/premerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
name: 🔧 Setup 📐
steps:
- uses: "actions/checkout@v2"
- uses: "actions/checkout@v4"

- name: Hash source Folder
env:
Expand All @@ -25,51 +25,33 @@ jobs:
lint:
needs: setup
if: "true"
runs-on: ubuntu-latest
name: 🔎 Linting 🧹
steps:
- uses: "actions/checkout@v2"
- uses: "actions/checkout@v4"

- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: latest

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 17.3
cache: 'pnpm'
- name: Install Tools
uses: jdx/mise-action@v2

- name: Install Dependencies
run: pnpm install --prefer-offline --frozen-lockfile

- name: Lint Project
uses: wearerequired/lint-action@v1
uses: wearerequired/lint-action@v2
with:
eslint: true
eslint_dir: "src"
eslint_extensions: ts

build:
needs: lint
if: "true"
runs-on: ubuntu-latest
name: 🔨 Building 📦
steps:
- uses: "actions/checkout@v2"
- uses: "actions/checkout@v4"

- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: latest

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 17.3
cache: 'pnpm'
- name: Install Tools
uses: jdx/mise-action@v2

- name: Install Dependencies
run: pnpm install --prefer-offline --frozen-lockfile
Expand All @@ -82,21 +64,18 @@ jobs:
runs-on: ubuntu-latest
name: ⚗️ Testing 👷🏼
steps:
- uses: "actions/checkout@v2"
- uses: "actions/checkout@v4"

- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: latest
- name: Install Tools
uses: jdx/mise-action@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 17.3
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install --prefer-offline --frozen-lockfile

# - name: Run Unit Tests
# uses: ArtiomTr/jest-coverage-report-action@v2
# with:
# test-script: pnpm test
# package-manager: pnpm
- name: Run Unit Tests
uses: ArtiomTr/jest-coverage-report-action@v2
with:
test-script: pnpm test
package-manager: pnpm
run: pnpm test
23 changes: 10 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,16 @@ jobs:
name: ⬆️ Publish 📦
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v2"

- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: latest

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 17.3
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- uses: "actions/checkout@v4"

- name: Install Tools
uses: jdx/mise-action@v2

- name: create .npmrc
run: |
echo "//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}
registry=https://registry.npmjs.org/
always-auth=true" > ~/.npmrc
- name: Install Dependencies
run: pnpm install --prefer-offline --frozen-lockfile
Expand Down
3 changes: 3 additions & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tools]
pnpm = "9.8.0"
node = "22.8.0"
21 changes: 0 additions & 21 deletions .vscode/launch.json

This file was deleted.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lipe",
"version": "0.3.3",
"version": "0.3.4",
"description": "A Logging library utilizing pipes",
"typings": "lib/Types",
"packageManager": "[email protected]",
Expand Down Expand Up @@ -39,21 +39,21 @@
"author": "CEbbinghaus <[email protected]>",
"license": "ISC",
"devDependencies": {
"@types/jest": "^27.4.1",
"@types/node": "^17.0.36",
"@types/jest": "^27.5.2",
"@types/node": "^17.0.45",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"eslint": "^7.32.0",
"jest": "^28.1.0",
"jest": "^28.1.3",
"jest-ts-webcompat-resolver": "^1.0.0",
"source-map": "^0.8.0-beta.0",
"ts-jest": "^28.0.0",
"typescript": "4.5.2",
"rimraf": "^3.0.2"
"rimraf": "^3.0.2",
"source-map": "0.8.0-beta.0",
"ts-jest": "^28.0.8",
"typescript": "4.5.2"
},
"optionalDependencies": {
"chalk": "^4.1.2",
"moment": "^2.29.1",
"moment": "^2.30.1",
"timer": "github:CEbbinghaus/timer"
}
}
Loading

0 comments on commit de65f03

Please sign in to comment.