Skip to content

Commit 1e1bc69

Browse files
committed
test: setup GithHub actions tests
1 parent 8228cfa commit 1e1bc69

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,21 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- name: Checkout
11-
uses: actions/checkout@v2
10+
- name: Checkout
11+
uses: actions/checkout@v2
1212

13-
- name: Use Node.js 10.x
14-
uses: actions/setup-node@v1
15-
with:
16-
node-version: 10.x
13+
- name: Use Node.js 10.x
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: 10.x
1717

18-
- name: Prepare and deploy
19-
env:
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21-
run: |
22-
cd src
23-
npm run build
24-
npm run test
25-
cd dist
26-
sudo npm link
18+
- name: Prepare and deploy
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
run: |
22+
cd src
23+
npm install --silent
24+
npm run build
25+
npm run test
26+
cd dist
27+
sudo npm link

0 commit comments

Comments
 (0)