Skip to content

Commit

Permalink
Test GH workflow (#264)
Browse files Browse the repository at this point in the history
* Test GH workflow

* Try different npm install approach

* Remove .npmrc and use package-lock

* Keep package lock, publish to coveralls

* Use min for all builds, fix lcov
  • Loading branch information
tbranyen committed Apr 2, 2022
1 parent c13a85a commit 1950f41
Show file tree
Hide file tree
Showing 39 changed files with 119,790 additions and 73 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: build-ci
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bahmutov/npm-install@v1.6.0
with:
useRollingCache: true
- uses: browser-actions/setup-chrome@latest
- run: chrome --version
- run: lerna run min
- name: Run tests
uses: GabrielBB/xvfb-action@v1
with:
run: lerna run test-cov
- name: Publish to coveralls.io
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ github.token }}
path-to-lcov: ./packages/diffhtml/coverage/lcov.info
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ dist
coverage
.nyc_output
lerna-debug.log
package-lock.json
1 change: 0 additions & 1 deletion .npmrc

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 @@
# <±/> diffHTML

[![Build Status](https://travis-ci.com/tbranyen/diffhtml.svg?branch=master)](https://travis-ci.com/tbranyen/diffhtml)
[![Build Status](https://github.com/tbranyen/diffhtml/actions/workflows/build-ci.yml/badge.svg)](https://github.com/tbranyen/diffhtml/actions/workflows/build-ci.yml)
[![Coverage
Status](https://coveralls.io/repos/tbranyen/diffhtml/badge.svg?branch=master&service=github)](https://coveralls.io/github/tbranyen/diffhtml?branch=master)

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lerna": "3.22.1",
"lerna": "4.0.0",
"packages": [
"packages/*"
],
Expand Down
Loading

0 comments on commit 1950f41

Please sign in to comment.