Skip to content

Commit

Permalink
Migrate from Travis to Github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hosuaby committed Jul 10, 2022
1 parent e579018 commit e3862d8
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ij_visual_guides = 100
[*.js]
ij_javascript_use_double_quotes = false

[*.json]
[{*.json, *.yml}]
indent_size = 2

[*.md]
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest
env:
node_version: 16.14.x
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node ${{ env.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.node_version }}

- name: Install
run: npm install

- name: Compile
run: npm run compile

- name: Test
run: npm test

- name: Build
run: npm run build

coverage:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master'
env:
node_version: 16.14.x
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node ${{ env.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.node_version }}

- name: Install
run: npm install

- name: Report coverage
run: |
npm run test:ci
npm run coverage
16 changes: 0 additions & 16 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,7 +1,7 @@
# Leaflet.SmoothMarkerBouncing

[![npm](https://img.shields.io/npm/v/leaflet.smooth_marker_bouncing.svg)](http://npm.im/leaflet.smooth_marker_bouncing)
[![Build Status](https://travis-ci.org/hosuaby/Leaflet.SmoothMarkerBouncing.svg?branch=master)](https://travis-ci.org/hosuaby/Leaflet.SmoothMarkerBouncing)
[![CI](https://github.com/hosuaby/Leaflet.SmoothMarkerBouncing/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/hosuaby/Leaflet.SmoothMarkerBouncing/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/github/hosuaby/Leaflet.SmoothMarkerBouncing/badge.svg?branch=master)](https://coveralls.io/github/hosuaby/Leaflet.SmoothMarkerBouncing?branch=master)

<hr />
Expand Down

0 comments on commit e3862d8

Please sign in to comment.