Skip to content

Commit

Permalink
add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
TheodoreKrypton committed Sep 21, 2020
1 parent 4542de9 commit 1beeffc
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: smalltest

on: [push, pull_request]


jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Node 12
uses: actions/setup-node@v1
with:
version: 12
- name: Install dependencies
run: npm install
- name: Coverage
run: npm run coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ jobs:
run: npm install -g pkg && npm run build

- name: Get version
run: echo "::set-env name=VERSION::v$(bash ./deployment/get_version.sh)"
run: echo "::set-env name=VERSION::$(bash ./deployment/get_version.sh)"

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.VERSION }}
tag_name: v${{ env.VERSION }}
release_name: Enjoy Driving!
draft: false
prerelease: false
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "javpy",
"version": "0.7.4",
"version": "0.7.5",
"description": "JavPy in Node.js",
"scripts": {
"test": "mocha ./test/test.js --timeout 60000",
Expand Down Expand Up @@ -48,4 +48,4 @@
"bin": {
"javpy": "./bin/javpy.js"
}
}
}

0 comments on commit 1beeffc

Please sign in to comment.