Skip to content

Commit

Permalink
refactored tests
Browse files Browse the repository at this point in the history
  • Loading branch information
goerwin committed Apr 1, 2021
1 parent 1380d80 commit 3d7cb3c
Show file tree
Hide file tree
Showing 21 changed files with 5,141 additions and 4,619 deletions.
10 changes: 2 additions & 8 deletions .directoryvalidator.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
"package-lock.json",
".DS_Store"
],
"ignoreDirs": [
"node_modules",
".nyc_output",
"coverage",
".git"
],
"ignoreDirs": ["node_modules", ".nyc_output", "coverage", ".git"],
"commonRules": {
"rule_indexfile": {
"type": "file",
Expand Down Expand Up @@ -46,8 +41,7 @@
"type": "directory",
"name": "src",
"isOptional": true,
"rules": [
]
"rules": []
}
]
}
16 changes: 16 additions & 0 deletions .github/workflows/publishToNPM.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on: push

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm install
- run: npm test
- run: npm run build
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# directory-validator

[![Build Status](https://travis-ci.org/erwingo/directory-validator.svg?branch=master)](https://travis-ci.org/erwingo/directory-validator)
[![Coverage Status](https://coveralls.io/repos/github/erwingo/directory-validator/badge.svg?branch=master)](https://coveralls.io/github/erwingo/directory-validator?branch=master)
[![Package Version](https://img.shields.io/npm/v/directory-validator.svg)](https://www.npmjs.com/package/directory-validator)

Tool to validate directory structures.
CLI Tool to validate directory structures.
If you want to have control over what files/dirs a directory can have then this can be useful.

## Installation
Expand Down
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
};
Loading

0 comments on commit 3d7cb3c

Please sign in to comment.