mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-05 22:10:11 +00:00
github actions
This commit is contained in:
parent
d8bb9c53f7
commit
a91a1b6bce
23
.github/workflows/ci.yml
vendored
Normal file
23
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: ci
|
||||||
|
'on':
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Node ${{ matrix.node }} / ${{ matrix.os }}
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os:
|
||||||
|
- ubuntu-latest
|
||||||
|
node:
|
||||||
|
- '14'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: ${{ runner.node }}
|
||||||
|
- run: npm install
|
||||||
|
- run: npm run build --if-present
|
||||||
|
- run: npm test
|
@ -1,6 +1,6 @@
|
|||||||
.travis.yml
|
|
||||||
CONTRIBUTING.md
|
CONTRIBUTING.md
|
||||||
examples/
|
examples/
|
||||||
img/
|
img/
|
||||||
test/
|
test/
|
||||||
tools/
|
tools/
|
||||||
|
.github/
|
||||||
|
10
.travis.yml
10
.travis.yml
@ -1,10 +0,0 @@
|
|||||||
language: node_js
|
|
||||||
sudo: false
|
|
||||||
node_js:
|
|
||||||
- lts/*
|
|
||||||
before_script:
|
|
||||||
# Add an IPv6 config - see the corresponding Travis issue
|
|
||||||
# https://github.com/travis-ci/travis-ci/issues/8361
|
|
||||||
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
|
|
||||||
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
|
|
||||||
fi
|
|
@ -1,7 +1,7 @@
|
|||||||
# bittorrent-tracker [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
|
# bittorrent-tracker [![ci][ci-image]][ci-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
|
||||||
|
|
||||||
[travis-image]: https://img.shields.io/travis/webtorrent/bittorrent-tracker/master.svg
|
[ci-image]: https://img.shields.io/github/workflow/status/webtorrent/bittorrent-tracker/ci/master
|
||||||
[travis-url]: https://travis-ci.org/webtorrent/bittorrent-tracker
|
[ci-url]: https://github.com/webtorrent/bittorrent-tracker/actions
|
||||||
[npm-image]: https://img.shields.io/npm/v/bittorrent-tracker.svg
|
[npm-image]: https://img.shields.io/npm/v/bittorrent-tracker.svg
|
||||||
[npm-url]: https://npmjs.org/package/bittorrent-tracker
|
[npm-url]: https://npmjs.org/package/bittorrent-tracker
|
||||||
[downloads-image]: https://img.shields.io/npm/dm/bittorrent-tracker.svg
|
[downloads-image]: https://img.shields.io/npm/dm/bittorrent-tracker.svg
|
||||||
|
Loading…
Reference in New Issue
Block a user