Skip to content

Commit

Permalink
Merge pull request #163 from reg-viz/update_dependencies
Browse files Browse the repository at this point in the history
chore: Upgrade CI Node.js version
  • Loading branch information
Quramy committed Mar 4, 2024
2 parents 51d0527 + 100f8f7 commit a0e5313
Show file tree
Hide file tree
Showing 16 changed files with 5,010 additions and 2,994 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build.yml
@@ -1,27 +1,32 @@
name: build

on: [pull_request, push]
on:
pull_request:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: npm install, build, and test
run: |
yarn --frozen-lockfile
yarn build
yarn lint
yarn test:ci
npm ci
npm run build
npm run lint
npm run test:ci
env:
CI: true
# - uses: codecov/codecov-action@v1
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/publish.yml
@@ -1,27 +1,31 @@
name: publish

on: push
on:
push:
tags:
- "*"

jobs:
publish:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: npm publish
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ~/.npmrc
npm whoami
yarn --frozen-lockfile
yarn build
npm ci
npm run build
npm publish
if: contains(github.ref, 'tags/v')
env:
Expand Down
14 changes: 14 additions & 0 deletions jest.config.mjs
@@ -0,0 +1,14 @@
export default {
transform: {
"^.+\\.ts$": [
"ts-jest",
{
diagnostics: false,
},
],
},
testRegex: "(src/.*\\.test)\\.ts$",
testPathIgnorePatterns: ["/node_modules/", "\\.d\\.ts$", "lib/.*"],
collectCoverageFrom: ["src/**/*.ts", "!**/testing/**"],
moduleFileExtensions: ["js", "ts", "json"],
};

0 comments on commit a0e5313

Please sign in to comment.