Skip to content

Commit

Permalink
Merge pull request #6 from iambumblehead/remove-travis
Browse files Browse the repository at this point in the history
Remove travis
  • Loading branch information
iambumblehead authored Apr 18, 2021
2 parents 223892b + 58b94de commit e25a555
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 12 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: nodejs-lint

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: lint
uses: actions/setup-node@v2
with:
node-version: '15.x'
- run: npm ci
- run: npm run lint
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI
name: nodejs-ci

on:
push:
Expand All @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
node-version: [12.x, 14.x, 15.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
esmock
======
[![npm version](https://badge.fury.io/js/esmock.svg)](https://badge.fury.io/js/esmock) [![Build Status](https://travis-ci.org/iambumblehead/esmock.svg?branch=master)](https://travis-ci.org/iambumblehead/esmock)
[![npm version](https://badge.fury.io/js/esmock.svg)](https://badge.fury.io/js/esmock) [![Build Status](https://github.com/iambumblehead/esmock/workflows/nodejs-ci/badge.svg)][2]


**esmock _must_ be used with node's experimental --loader**
Expand Down Expand Up @@ -48,6 +48,8 @@ test('should do global instance mocks —third parameter', async t => {

### changelog

* 0.3.5 _Apr.18.2021_
* added gitlab actions npm test: node 12.x, 14.x and 15.x
* 0.3.3 _Apr.13.2021_
* added keywords to package.json, use github action to npm publish
* 0.3.1 _Apr.12.2021_
Expand All @@ -61,3 +63,5 @@ test('should do global instance mocks —third parameter', async t => {


[0]: http://www.bumblehead.com "bumblehead"
[1]: https://github.com/iambumblehead/esmock/workflows/nodejs-ci/badge.svg "nodejs-ci pipeline"
[2]: https://github.com/iambumblehead/esmock "esmock"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "esmock",
"version": "0.3.4",
"version": "0.3.5",
"license": "MIT",
"readmeFilename": "README.md",
"description": "mock esm modules for unit-tests",
Expand Down
3 changes: 0 additions & 3 deletions src/esmockModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import fs from 'fs';
import resolvewith from 'resolvewithplus';

import {
esmockCache,
esmockCacheSet,
esmockCacheResolvedPathGet,
esmockCacheResolvedPathSet,
Expand Down Expand Up @@ -156,8 +155,6 @@ const esmockModuleMock = async (calleePath, modulePath, defs, gdefs, opt) => {
};

export {
esmockCache,
esmockNextKey,
esmockModuleMock,
esmockModuleImportedPurge,
esmockModuleImportedSanitize
Expand Down

0 comments on commit e25a555

Please sign in to comment.