Skip to content

Commit 41113ea

Browse files
authored
ci: replace travis with actions, setup renovate (#182)
1 parent 2b9c73e commit 41113ea

File tree

9 files changed

+12863
-23
lines changed

9 files changed

+12863
-23
lines changed

.github/workflows/release.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- next
7+
- beta
8+
- "*.x" # maintenance releases branches
9+
10+
jobs:
11+
release:
12+
name: release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v1
17+
- uses: bahmutov/npm-install@v1
18+
- run: npx semantic-release
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_NPM_TOKEN }}

.github/workflows/test.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
pull_request:
9+
types:
10+
- opened
11+
- synchronize
12+
13+
jobs:
14+
test_matrix:
15+
strategy:
16+
matrix:
17+
node-version:
18+
- 10
19+
- 12
20+
- 14
21+
os:
22+
- ubuntu-latest
23+
- macos-latest
24+
- windows-latest
25+
26+
runs-on: ${{ matrix.os }}
27+
28+
steps:
29+
- uses: actions/checkout@v2
30+
- name: Use Node.js ${{ matrix.node-version }}
31+
uses: actions/setup-node@v1
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
- uses: bahmutov/npm-install@v1
35+
- run: npm run test:ci
36+
37+
# separate job to set as required in branch protection,
38+
# as the build names above change each time Node versions change
39+
test:
40+
runs-on: ubuntu-latest
41+
needs: test_matrix
42+
steps:
43+
- uses: actions/checkout@v2
44+
- name: Use Node.js ${{ matrix.node-version }}
45+
uses: actions/setup-node@v1
46+
with:
47+
node-version: ${{ matrix.node-version }}
48+
- uses: bahmutov/npm-install@v1
49+
- run: npm run lint

.gitignore

+2-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
.LSOverride
2323

2424
# Icon must end with two \r
25-
Icon
25+
Icon
2626

2727
# Thumbnails
2828
._*
@@ -125,7 +125,4 @@ $RECYCLE.BIN/
125125
# Windows shortcuts
126126
*.lnk
127127

128-
# End of https://www.gitignore.io/api/macos,windows,linux,node
129-
130-
yarn.lock
131-
package-lock.json
128+
# End of https://www.gitignore.io/api/macos,windows,linux,node

.npmrc

-1
This file was deleted.

.travis.yml

-8
This file was deleted.

.yarnrc

-1
This file was deleted.

README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22

33
[**semantic-release**](https://github.com/semantic-release/semantic-release) plugin to analyze commits with [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog)
44

5-
[![Travis](https://img.shields.io/travis/semantic-release/commit-analyzer.svg)](https://travis-ci.org/semantic-release/commit-analyzer)
6-
[![Codecov](https://img.shields.io/codecov/c/github/semantic-release/commit-analyzer.svg)](https://codecov.io/gh/semantic-release/commit-analyzer)
7-
[![Greenkeeper badge](https://badges.greenkeeper.io/semantic-release/commit-analyzer.svg)](https://greenkeeper.io/)
8-
9-
[![npm latest version](https://img.shields.io/npm/v/@semantic-release/commit-analyzer/latest.svg)](https://www.npmjs.com/package/@semantic-release/commit-analyzer)
5+
[![Build Status](https://github.com/semantic-release/commit-analyzer/workflows/Test/badge.svg)](https://github.com/semantic-release/commit-analyzer/actions?query=workflow%3ATest+branch%3Amaster) [![npm latest version](https://img.shields.io/npm/v/@semantic-release/commit-analyzer/latest.svg)](https://www.npmjs.com/package/@semantic-release/commit-analyzer)
106
[![npm next version](https://img.shields.io/npm/v/@semantic-release/commit-analyzer/next.svg)](https://www.npmjs.com/package/@semantic-release/commit-analyzer)
117
[![npm beta version](https://img.shields.io/npm/v/@semantic-release/commit-analyzer/beta.svg)](https://www.npmjs.com/package/@semantic-release/commit-analyzer)
128

0 commit comments

Comments
 (0)