Skip to content

Commit

Permalink
Merge pull request #24 from ndaidong/3.0.0
Browse files Browse the repository at this point in the history
v3.0.0-rc1
  • Loading branch information
ndaidong authored Jun 23, 2024
2 parents b34329d + b1b0072 commit e25bf48
Show file tree
Hide file tree
Showing 22 changed files with 375 additions and 703 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

119 changes: 0 additions & 119 deletions .eslintrc.json

This file was deleted.

54 changes: 23 additions & 31 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,31 @@ on: [push, pull_request]
jobs:
test:

runs-on: ubuntu-22.04
runs-on: ubuntu-latest

strategy:
matrix:
node_version: [14.x, 16.x, 18.x, 19.x]
deno-version: [1.44.4]

steps:
- uses: actions/checkout@v3

- name: setup Node.js v${{ matrix.node_version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}

- name: run npm scripts
run: |
npm install
npm run lint
npm run build --if-present
npm run test
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: cache node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Git Checkout Deno Module
uses: actions/checkout@v4
- name: Use Deno Version ${{ matrix.deno-version }}
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}
- name: format check
run: deno fmt --check mod.ts scripts/* tests/*
- name: run linter
run: deno lint mod.ts utils/* scripts/* tests/*
- name: run test
run: deno test --allow-all --coverage=cov/

- name: Generate coverage report
run: deno coverage --lcov cov > cov.lcov

- name: Upload coverage to Coveralls.io
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: cov.lcov
13 changes: 1 addition & 12 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
Expand Down Expand Up @@ -38,7 +27,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: publish

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # The OIDC ID token is used for authentication with JSR.
steps:
- uses: actions/checkout@v4
- run: npx jsr publish
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@ logs

# Runtime data
*.pid
*.lock
*.seed

node_modules
coverage
coverage.lcov
.nyc_output

yarn.lock
coverage.lcov
package-lock.json
pnpm-lock.yaml
package-lock.json

npm
cov
cov.lcov
8 changes: 0 additions & 8 deletions .npmignore

This file was deleted.

Loading

0 comments on commit e25bf48

Please sign in to comment.