Skip to content

Commit

Permalink
fix(build): move to github actions (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
princjef authored Jan 7, 2022
1 parent b6ee748 commit bdd919d
Show file tree
Hide file tree
Showing 5 changed files with 21,163 additions and 6,285 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build
on:
push:
branches:
- master
pull_request:
jobs:
test:
strategy:
matrix:
version:
- 8.x
- 16.x
platform:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{matrix.platform}}
steps:
- name: Use Node ${{matrix.version}}
uses: actions/setup-node@v1
with:
node-version: ${{matrix.version}}
- name: Checkout code
uses: actions/checkout@v2
- name: Install Dependencies
run: npm ci
- name: Commitlint
run: git log --format=%B -1 | npm run commitlint
- name: Test
run: npm test
- name: Generate Coverage
if: ${{ matrix.platform == 'ubuntu-latest' && matrix.version == '16.x' }}
run: npm run coverage
- name: Upload Coverage
if: ${{ matrix.platform == 'ubuntu-latest' && matrix.version == '16.x' }}
uses: codecov/codecov-action@v2
- name: Release
if: ${{ matrix.platform == 'ubuntu-latest' && matrix.version == '16.x' && github.ref == 'refs/heads/master' }}
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34 changes: 0 additions & 34 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 @@
# font-ligatures

[![Travis CI build status](https://travis-ci.org/princjef/font-ligatures.svg?branch=master)](https://travis-ci.org/princjef/font-ligatures)
[![GitHub Actions](https://github.com/princjef/font-ligatures/workflows/Build/badge.svg)](https://github.com/princjef/font-ligatures/actions?query=workflow%3ABuild+branch%3Amaster)
[![codecov](https://codecov.io/gh/princjef/font-ligatures/branch/master/graph/badge.svg)](https://codecov.io/gh/princjef/font-ligatures)
[![npm version](https://img.shields.io/npm/v/font-ligatures.svg)](https://npmjs.org/package/font-ligatures)

Expand Down
Loading

0 comments on commit bdd919d

Please sign in to comment.