Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use github actions to replace travis ci #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [ 10, 11, 12, 13, 14, 15, 16, 17, 18 ]
os: [ macos-latest, ubuntu-latest, windows-latest ]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
if: ${{ matrix.os != 'windows-latest' }}
run: |
export NVM_DIR="$HOME/.nvm"
source "$NVM_DIR/nvm.sh"
nvm install ${{ matrix.node-version }}
nvm install-latest-npm
- name: Run npm install --build-from-source
run: npm install --build-from-source
- run: npm test
- run: node example.js
- name: Publish binaries
if: ${{ contains(github.event.commits[0].message, '[publish binary]') && github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.os != 'windows-latest' }}
run: ./node_modules/.bin/node-pre-gyp package unpublish publish info
- name: Publish Windows binaries
if: ${{ contains(github.event.commits[0].message, '[publish binary]') && github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.os == 'windows-latest' }}
run: cmd /c 'node_modules\.bin\node-pre-gyp package unpublish publish info'
54 changes: 0 additions & 54 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ Installation should just be:
npm install tulind
```

It should work on Windows, Os X, and Linux. Node version 10, 11, 12, 13, 14 (LTS),
15 and 16 are tested and supported on each platform.
It should work on Windows, Os X, and Linux. Node version 10+ are tested and supported on each platform.

Note that pre-compiled binaries are available for Windows. For other platforms
you will need a C++ build environment installed. On Linux based distributions
Expand Down
62 changes: 0 additions & 62 deletions appveyor.yml

This file was deleted.