Skip to content

Commit

Permalink
Setup GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andywhite37 committed Dec 12, 2019
1 parent 32c9398 commit 316e442
Show file tree
Hide file tree
Showing 31 changed files with 99 additions and 6,700 deletions.
42 changes: 0 additions & 42 deletions .circleci/config.yml

This file was deleted.

5 changes: 1 addition & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
*.re linguist-language=Reason
*.rei linguist-language=Reason

docs/coverage/**/* -diff -merge
docs/coverage/**/* linguist-generated=true
*.rei linguist-language=Reason
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

# TODO: not sure if this actually does anything useful
- name: Cache ~/.npm
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: npm install
run: npm install

- name: npm run cleancoverage
run: npm run cleancoverage

- name: Coveralls
uses: coverallsapp/github-action@master
with:
path-to-lcov: ./docs/coverage/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ node_modules/

# Project files
lib/
/docs/coverage
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ A URI is broken up into several sub-component types, including `Scheme`, `Author

## Parsing

[![GitHub CI](https://img.shields.io/github/workflow/status/reazen/relude-url/CI/master)](https://github.com/reazen/relude-url/actions)
[![npm](https://img.shields.io/npm/v/relude-url//www.npmjs.com/package/relude-url)

`ReludeURL` uses [ReludeParse](https://github.com/reazen/relude-parse) to parse URIs. To run a URI parser, you use
the standard convention for running a `ReludeParse` parser, like below:

Expand Down

0 comments on commit 316e442

Please sign in to comment.