Skip to content

Commit 24eea0d

Browse files
committed
[Tests] mostly switch to Github Actions
1 parent 797455f commit 24eea0d

File tree

9 files changed

+103
-12
lines changed

9 files changed

+103
-12
lines changed

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: [ljharb]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: npm/crypto-browserify
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/node-aught.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'Tests: node.js < 10'
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
tests:
7+
uses: ljharb/actions/.github/workflows/node.yml@main
8+
with:
9+
range: '< 10'
10+
type: minors
11+
command: npm run tests-only
12+
13+
node:
14+
name: 'node < 10'
15+
needs: [tests]
16+
runs-on: ubuntu-latest
17+
steps:
18+
- run: 'echo tests completed'

.github/workflows/node-pretest.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: 'Tests: pretest/posttest'
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
tests:
7+
uses: ljharb/actions/.github/workflows/pretest.yml@main

.github/workflows/node-tens.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'Tests: node.js >= 10'
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
tests:
7+
uses: ljharb/actions/.github/workflows/node.yml@main
8+
with:
9+
range: '>= 10'
10+
type: minors
11+
command: npm run tests-only
12+
13+
node:
14+
name: 'node >= 10'
15+
needs: [tests]
16+
runs-on: ubuntu-latest
17+
steps:
18+
- run: 'echo tests completed'

.github/workflows/rebase.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Automatic Rebase
2+
3+
on: [pull_request_target]
4+
5+
jobs:
6+
_:
7+
uses: ljharb/actions/.github/workflows/rebase.yml@main
8+
secrets:
9+
token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Require “Allow Edits”
2+
3+
on: [pull_request_target]
4+
5+
jobs:
6+
_:
7+
name: "Require “Allow Edits”"
8+
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: ljharb/require-allow-edits@main

.travis.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@ sudo: false
22
language: node_js
33
matrix:
44
include:
5-
- node_js: '0.11'
6-
env: TEST_SUITE=tests-only
7-
- node_js: '0.12'
8-
env: TEST_SUITE=tests-only
9-
- node_js: '4'
10-
env: TEST_SUITE=tests-only
11-
- node_js: '4'
12-
env: TEST_SUITE=lint
13-
- node_js: '4'
145
env: TEST_SUITE=browser BROWSER_NAME=ie BROWSER_VERSION="10..latest"
156
- node_js: '4'
167
env: TEST_SUITE=browser BROWSER_NAME=chrome BROWSER_VERSION="-2..beta"

README.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
# crypto-browserify
1+
# crypto-browserify <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
22

33
A port of node's `crypto` module to the browser.
44

5-
[![Build Status](https://travis-ci.org/browserify/crypto-browserify.svg?branch=master)](https://travis-ci.org/browserify/crypto-browserify)
6-
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
5+
[![github actions][actions-image]][actions-url]
6+
[![coverage][codecov-image]][codecov-url]
7+
[![License][license-image]][license-url]
8+
[![Downloads][downloads-image]][downloads-url]
79
[![Sauce Test Status](https://saucelabs.com/browser-matrix/crypto-browserify.svg)](https://saucelabs.com/u/crypto-browserify)
810

11+
[![npm badge][npm-badge-png]][package-url]
12+
13+
914
The goal of this module is to reimplement node's crypto module,
1015
in pure javascript so that it can run in the browser.
1116

@@ -48,3 +53,19 @@ and post comments if you do.
4853
## License
4954

5055
MIT
56+
57+
[package-url]: https://npmjs.org/package/crypto-browserify
58+
[npm-version-svg]: https://versionbadg.es/browserify/crypto-browserify.svg
59+
[deps-svg]: https://david-dm.org/browserify/crypto-browserify.svg
60+
[deps-url]: https://david-dm.org/browserify/crypto-browserify
61+
[dev-deps-svg]: https://david-dm.org/browserify/crypto-browserify/dev-status.svg
62+
[dev-deps-url]: https://david-dm.org/browserify/crypto-browserify#info=devDependencies
63+
[npm-badge-png]: https://nodei.co/npm/crypto-browserify.png?downloads=true&stars=true
64+
[license-image]: https://img.shields.io/npm/l/crypto-browserify.svg
65+
[license-url]: LICENSE
66+
[downloads-image]: https://img.shields.io/npm/dm/crypto-browserify.svg
67+
[downloads-url]: https://npm-stat.com/charts.html?package=crypto-browserify
68+
[codecov-image]: https://codecov.io/gh/browserify/crypto-browserify/branch/main/graphs/badge.svg
69+
[codecov-url]: https://app.codecov.io/gh/browserify/crypto-browserify/
70+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/browserify/crypto-browserify
71+
[actions-url]: https://github.com/browserify/crypto-browserify/actions

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
"posttest": "aud --production",
1717
"browser": "zuul --browser-version $BROWSER_VERSION --browser-name $BROWSER_NAME -- test/index.js"
1818
},
19+
"funding": {
20+
"url": "https://github.com/sponsors/ljharb"
21+
},
1922
"engines": {
2023
"node": "*"
2124
},

0 commit comments

Comments
 (0)