Skip to content

Commit 96a0358

Browse files
ci: migrate to github actions
1 parent 11fbf65 commit 96a0358

File tree

5 files changed

+64
-15
lines changed

5 files changed

+64
-15
lines changed

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
env:
9+
HUSKY: 0
10+
11+
jobs:
12+
test:
13+
strategy:
14+
matrix:
15+
os: [windows-latest, macos-latest, ubuntu-latest]
16+
name: test on ${{ matrix.os }}
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: actions/setup-node@v2
21+
with:
22+
node-version: lts/*
23+
- run: npm install
24+
- run: npm run test:coverage
25+
- run: npx codecov
26+
release:
27+
name: release
28+
runs-on: ubuntu-latest
29+
needs: test
30+
env:
31+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
32+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
steps:
34+
- uses: actions/checkout@v2
35+
- uses: actions/setup-node@v2
36+
with:
37+
node-version: lts/*
38+
- run: npm install
39+
- run: npm run build
40+
- run: npx semantic-release

.github/workflows/pull-request.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: pull-request
2+
3+
on: pull_request
4+
5+
env:
6+
HUSKY: 0
7+
8+
jobs:
9+
test:
10+
strategy:
11+
matrix:
12+
os: [windows-latest, macos-latest, ubuntu-latest]
13+
name: test on ${{ matrix.os }}
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: lts/*
20+
- run: npm install
21+
- run: npm run test:coverage
22+
- run: npx codecov

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![npm](https://img.shields.io/npm/dt/rollup-plugin-external-assets)](https://www.npmjs.com/package/rollup-plugin-external-assets)
22
[![npm](https://img.shields.io/npm/v/rollup-plugin-external-assets)](https://www.npmjs.com/package/rollup-plugin-external-assets)
3-
[![Build Status](https://travis-ci.com/soufyakoub/rollup-plugin-external-assets.svg?branch=master)](https://travis-ci.com/soufyakoub/rollup-plugin-external-assets)
3+
[![build](https://github.com/recursive-beast/rollup-plugin-external-assets/actions/workflows/build.yml/badge.svg)](https://github.com/recursive-beast/rollup-plugin-external-assets/actions/workflows/build.yml)
44
[![codecov](https://codecov.io/gh/soufyakoub/rollup-plugin-external-assets/branch/master/graph/badge.svg)](https://codecov.io/gh/soufyakoub/rollup-plugin-external-assets)
55
[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)][1]
66

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"scripts": {
1212
"test": "rimraf tests/coverage && cross-env ROLLUP_WARNINGS=false jest",
1313
"test:warn": "rimraf tests/coverage && cross-env ROLLUP_WARNINGS=true jest",
14+
"test:coverage": "rimraf tests/coverage && cross-env ROLLUP_WARNINGS=false jest --coverage",
1415
"coverage": "codecov",
1516
"clean": "rimraf dist tests/coverage",
1617
"build": "rimraf dist && rollup -c",

0 commit comments

Comments
 (0)