Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Adding cli test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Walter committed Oct 29, 2019
1 parent 10e21c4 commit 89a99ac
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 39 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: ianwalter
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: CI
on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container:
image: node:12.9-slim
image: node:12.10-slim
steps:
- name: Checkout
uses: actions/checkout@master
Expand Down
63 changes: 28 additions & 35 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,35 +1,28 @@
Copyright (c) Ian Walter <public@iankwalter.com> (https://iankwalter.com)

Licensed under the Apache License, Version 2.0 (the "License") modified with
Commons Clause Restriction; you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.

"Commons Clause" License Condition v1.0

The Software is provided to you by the Licensor under the License, as defined
below, subject to the following condition.

Without limiting other conditions in the License, the grant of rights under the
License will not include, and the License does not grant to you, the right to
Sell the Software.

For purposes of the foregoing, "Sell" means practicing any or all of the rights
granted to you under the License to provide to third parties, for a fee or other
consideration (including without limitation fees for hosting or
consulting/support services related to the Software), a product or service whose
value derives, entirely or substantially, from the functionality of the
Software. Any license notice or attribution required by the License must also
include this Commons Clause License Condition notice.

Software: @ianwalter/faygit

License: Apache 2.0

Licensor: Ian Walter
Copyright 2019 Ian Walter

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

* The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

* The software may not be used by individuals, corporations, governments, or
other groups for systems or activities that actively and knowingly endanger,
harm, or otherwise threaten the physical, mental, economic, or general
well-being of individuals or groups in violation of the United Nations
Universal Declaration of Human Rights
(https://www.un.org/en/universal-declaration-human-rights/).

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

This license is derived from the MIT License, as amended to limit the impact of
the unethical use of open source software.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# @ianwalter/faygit
> Generate a mock git repository: faygit til you make it!
[![npm page][npmImage]][npmUrl]
[![CI][ciImage]][ciUrl]

# Installation

Globally:
Expand All @@ -27,8 +30,10 @@ Apache 2.0 with Commons Clause - See [LICENSE][licenseUrl]

&nbsp;

Created by [Ian Walter](https://iankwalter.com)
Created by [Ian Walter](https://ianwalter.dev)

[npmImage]: https://img.shields.io/npm/v/@ianwalter/faygit.svg
[npmUrl]: https://www.npmjs.com/package/@ianwalter/faygit
[ciImage]: https://github.com/ianwalter/faygit/workflows/CI/badge.svg
[ciUrl]: https://github.com/ianwalter/faygit/actions
[licenseUrl]: https://github.com/ianwalter/faygit/blob/master/LICENSE
7 changes: 6 additions & 1 deletion tests.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
const { test } = require('@ianwalter/bff')
const execa = require('execa')

test.skip('TODO')
test('cli', async ({ expect }) => {
const { stdout } = await execa('yarn', ['faygit', 'tmp'])
expect(stdout).toMatch(/Added [0-9]+ commits!/)
await execa('git', ['rev-list', '--all', '--count'])
})

0 comments on commit 89a99ac

Please sign in to comment.