Skip to content

Commit 48083b5

Browse files
committedMay 13, 2020
Create test.yml
1 parent b9cb508 commit 48083b5

File tree

4 files changed

+39
-9
lines changed

4 files changed

+39
-9
lines changed
 

‎.github/workflows/test.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Test
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
test:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node-version: [8.x, 10.x, 12.x]
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- name: Install, lint and test
28+
run: |
29+
yarn install
30+
yarn lint
31+
yarn test
32+
env:
33+
CI: true

‎README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
<p align="center"><a href="https://haystackapp.io/" target="_blank" rel="noopener noreferrer"><span style="font-size:64px;">🗝</span>
2-
</a></p>
1+
<p align="center"><a href="https://github.com/du5rte/secrets" target="_blank" rel="noopener noreferrer"><img width="100" src="key.svg" alt="Key"></a></p>
32

43
<p align="center"><a href="https://github.com/du5rte/secrets"><img alt="GitHub Actions Test Status" src="https://github.com/du5rte/secrets/workflows/Test/badge.svg"/></p>
54

6-
75
# Secrets
86

97
Secret handler for Node.js 🗝️

‎key.svg

+1
Loading

‎package.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
"description": "Secret handler for Node.js 🗝️",
55
"main": "dist",
66
"scripts": {
7-
"build": "babel src --out-dir dist",
8-
"clean": "rm -rf dist",
9-
"dev": "babel src --out-dir dist && jest",
10-
"prepublish": "rm -rf dist && babel src --out-dir dist",
11-
"lint": "eslint .",
7+
"build": "babel src --out-dir dist --delete-dir-on-start --verbose",
8+
"dev": "npm run build && npm run test",
9+
"lint": "eslint src",
1210
"test": "jest"
1311
},
1412
"license": "MIT",
@@ -69,7 +67,7 @@
6967
"prettier/prettier": "warn"
7068
},
7169
"ignorePatterns": [
72-
"dist/",
70+
"lib/",
7371
"node_modules/"
7472
]
7573
},

0 commit comments

Comments
 (0)
Please sign in to comment.