Skip to content

Commit

Permalink
travis broke, test and badge with github actions instead
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasq committed Jun 24, 2023
1 parent 1df8ad0 commit 8468b41
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 20 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: build
on:
push:
# branches: [ $default-branch, ar-test ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 0.10.x, 4, 8, 12, 16, 18, 5.8.0 ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm install -g qnit

- name: npm test
if: ${{ matrix.node != '5.8.0' }}
run: npm test

- name: npm test v0.8
if: ${{ matrix.node == '5.8.0' }}
run: |
# npm@1 cannot ssl connect to npmjs.org or github.com, so use node-v5.8 setup to test
curl -s https://nodejs.org/dist/v0.8.28/node-v0.8.28-linux-x64.tar.gz > node.tgz
tar xfzO node.tgz node-v0.8.28-linux-x64/bin/node > node_modules/.bin/node
chmod a+rx node_modules/.bin/node
npm test
rm node_modules/.bin/node
- name: test coverage
if: ${{ matrix.node == '5.8.0' }}
run: |
npm install -g nyc@8.4.0
npm run coverage
- name: upload coverage
if: ${{ matrix.node == '5.8.0' }}
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ github.token }}
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
uuid-quick
==========
[![Build Status](https://api.travis-ci.org/andrasq/node-uuid-quick.svg?branch=master)](https://travis-ci.org/andrasq/node-uuid-quick?branch=master)
[![Build Status](https://github.com/andrasq/node-uuid-quick/actions/workflows/nodejs.yml/badge.svg)](https://github.com/andrasq/node-uuid-quick/actions/workflows/nodejs.yml)
[![Coverage Status](https://coveralls.io/repos/github/andrasq/node-uuid-quick/badge.svg?branch=master)](https://coveralls.io/github/andrasq/node-uuid-quick?branch=master)

Quicker fast UUIDs.
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@
"repository": { "type": "git", "url": "git+https://git@github.com/andrasq/node-uuid-quick.git" },
"keywords": [ "fast", "Andras", "faster", "fastest", "uuid", "quick" ],

"devDependencies": {
"qnit": "x"
},

"scripts": {
"test": "qnit test-*",
"test": "node -v; qnit test-*",
"coverage": "nyc -r text -r lcov npm test",
"clean": "rm -rf .nyc_output/ coverage/"
}
Expand Down

0 comments on commit 8468b41

Please sign in to comment.