Skip to content

Commit

Permalink
change ci provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Emman committed Jan 27, 2022
1 parent 92b9c86 commit 1143707
Show file tree
Hide file tree
Showing 6 changed files with 2,754 additions and 6 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 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://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: SM3JS CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
node_modules/
package-lock.json
3 changes: 0 additions & 3 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,5 +1,5 @@
# sm3js
[![Build Status](https://travis-ci.org/emmansun/sm3js.svg?branch=main)](https://travis-ci.org/emmansun/sm3js)
[![SM3JS CI](https://github.com/emmansun/sm3js/actions/workflows/ci.yml/badge.svg)](https://github.com/emmansun/sm3js/actions/workflows/ci.yml)
[![npm version](https://badge.fury.io/js/gmsm-sm3js.svg)](https://badge.fury.io/js/gmsm-sm3js)
[![NPM Downloads][npm-downloads-image]][npm-url]

Expand Down
Loading

0 comments on commit 1143707

Please sign in to comment.