Skip to content

Commit 3cdfaae

Browse files
authored
ci: replace travis with actions, setup renovate (#216)
1 parent 905f113 commit 3cdfaae

File tree

9 files changed

+12503
-22
lines changed

9 files changed

+12503
-22
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
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

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
- run: git config --global user.name github-actions
31+
- run: git config --global user.email [email protected]
32+
33+
- name: Use Node.js ${{ matrix.node-version }}
34+
uses: actions/setup-node@v1
35+
with:
36+
node-version: ${{ matrix.node-version }}
37+
- uses: bahmutov/npm-install@v1
38+
- run: npm run test:ci
39+
40+
# separate job to set as required in branch protection,
41+
# as the build names above change each time Node versions change
42+
test:
43+
runs-on: ubuntu-latest
44+
needs: test_matrix
45+
steps:
46+
- uses: actions/checkout@v2
47+
- name: Use Node.js ${{ matrix.node-version }}
48+
uses: actions/setup-node@v1
49+
with:
50+
node-version: ${{ matrix.node-version }}
51+
- uses: bahmutov/npm-install@v1
52+
- run: npm run lint

.gitignore

Lines changed: 1 addition & 4 deletions
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
._*
@@ -126,6 +126,3 @@ $RECYCLE.BIN/
126126
*.lnk
127127

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

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.travis.yml

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

.yarnrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 1 addition & 5 deletions
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 commit release assets to the project's [git](https://git-scm.com/) repository.
44

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

0 commit comments

Comments
 (0)