Skip to content

Commit 0ac7bab

Browse files
authored
ci: replace travis with actions (#298)
1 parent 73490fc commit 0ac7bab

File tree

9 files changed

+12866
-18
lines changed

9 files changed

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

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
package-lock.json
131-
yarn.lock
128+
# End of https://www.gitignore.io/api/macos,windows,linux,node

.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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
[**semantic-release**](https://github.com/semantic-release/semantic-release) plugin to publish a
44
[GitHub release](https://help.github.com/articles/about-releases) and comment on released Pull Requests/Issues.
55

6-
[![Travis](https://img.shields.io/travis/semantic-release/github.svg)](https://travis-ci.org/semantic-release/github)
7-
[![Codecov](https://img.shields.io/codecov/c/github/semantic-release/github.svg)](https://codecov.io/gh/semantic-release/github)
8-
[![Greenkeeper badge](https://badges.greenkeeper.io/semantic-release/github.svg)](https://greenkeeper.io/)
6+
[![Build Status](https://github.com/octokit/core.js/workflows/Test/badge.svg)](https://github.com/octokit/core.js/actions?query=workflow%3ATest+branch%3Amaster)
97

108
[![npm latest version](https://img.shields.io/npm/v/@semantic-release/github/latest.svg)](https://www.npmjs.com/package/@semantic-release/github)
119
[![npm next version](https://img.shields.io/npm/v/@semantic-release/github/next.svg)](https://www.npmjs.com/package/@semantic-release/github)

0 commit comments

Comments
 (0)