Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

Commit ff92a2b

Browse files
author
Martynas Žilinskas
authored
Added test CI GH workflow. (#7)
1 parent f6babe6 commit ff92a2b

3 files changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
name: Build & Publish
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: '10.x'
16+
registry-url: 'https://npm.pkg.github.com'
17+
- run: npm install
18+
- run: npm test
19+
- run: npm run build
20+
- run: yarn publish
21+
env:
22+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+

.github/workflows/test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Test
2+
3+
on: pull_request
4+
5+
jobs:
6+
job1:
7+
name: "Test"
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- uses: actions/setup-node@v1
12+
with:
13+
node-version: '10.x'
14+
registry-url: 'https://npm.pkg.github.com'
15+
- run: npm install
16+
- run: npm test
17+
# - uses: codecov/codecov-action@v1.0.2
18+
# with:
19+
# token: ${{secrets.CODECOV_TOKEN}}
20+
# file: ./coverage/cobertura-coverage.xml

codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
comment: off

0 commit comments

Comments
 (0)