Skip to content

Commit

Permalink
Merge pull request #137 from ndaidong/dev
Browse files Browse the repository at this point in the history
v12.0.0-rc1
  • Loading branch information
ndaidong authored Jun 24, 2024
2 parents 979110e + f5148fd commit abfdd3c
Show file tree
Hide file tree
Showing 46 changed files with 1,803 additions and 2,293 deletions.
66 changes: 22 additions & 44 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,49 +12,27 @@ jobs:

strategy:
matrix:
node_version: [18.x, 20.x, 22.x]
deno-version: [1.44.4]

steps:
- uses: actions/checkout@v4

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

- name: setup timezone
uses: zcong1993/setup-timezone@master
with:
timezone: ${{ secrets.TZ }}

- name: run npm scripts
run: |
npm install
npm run lint
npm run test
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
flag-name: run-${{ join(matrix.*, '-') }}
parallel: true
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: cache node modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
finish:
needs: test
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "run-18.x,run-20.x,run-22.x"
- 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 utils/* 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
11 changes: 0 additions & 11 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
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
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ yarn.lock
coverage.lcov
package-lock.json
pnpm-lock.yaml
deno.lock

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

This file was deleted.

Loading

0 comments on commit abfdd3c

Please sign in to comment.