Skip to content

Commit 2d99656

Browse files
authored
feat(CI): migrate to github actions (#7)
* remove travis config * add gh action for testing * add semantic release workflow * remove lockfiles from gitignore * update package-lock for CI
1 parent 991e120 commit 2d99656

File tree

5 files changed

+18311
-66
lines changed

5 files changed

+18311
-66
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Semantic Release
2+
on:
3+
push:
4+
branches:
5+
- 'main'
6+
- 'master'
7+
tags-ignore:
8+
- '**'
9+
jobs:
10+
semantic_release:
11+
name: Semantic Release Process
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
- name: Setup Node
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: 14
22+
- name: Install Semantic Release Packages
23+
run: npm i -g @stackr23/preset-conventional-changelog semantic-release @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/changelog @semantic-release/npm @semantic-release/git @semantic-release/github
24+
- name: Exec Semantic Release
25+
run: npx semantic-release
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
29+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test and Lint
2+
on:
3+
push:
4+
branches:
5+
- 'develop'
6+
- 'feat/**'
7+
- 'fix/**'
8+
tags-ignore:
9+
- '**'
10+
jobs:
11+
test_and_lint:
12+
name: Testing with NodeJS v${{ matrix.node }}
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: true
16+
matrix:
17+
node: ['12', '13', '14']
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
with:
22+
fetch-depth: 0
23+
- name: Setup Node v${{ matrix.node }}
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: ${{ matrix.node }}
27+
- run: npm ci
28+
- run: npm run lint
29+
- run: npm run build
30+
- run: npm run karma

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
node_modules
22
build
3-
package-lock.json
4-
yarn.lock

.travis.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)