Skip to content

Commit

Permalink
Add GitHub workflow and Update badges
Browse files Browse the repository at this point in the history
  • Loading branch information
Binnette committed Jul 5, 2024
1 parent fd66a4c commit ae2306c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-tests-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build, Tests and Coverage

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/[email protected]

- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 20

- name: Install dependencies
run: npm ci

- name: Build project
run: npm run build

- name: Run tests and generate coverage report
run: npm run test-ci

- name: Coveralls GitHub Action
uses: coverallsapp/[email protected]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![GitHub release](https://img.shields.io/github/release/osmlab/osm-request.svg)](https://github.com/osmlab/osm-request/releases)
[![Build Status](https://api.travis-ci.org/osmlab/osm-request.svg?branch=develop)](http://travis-ci.org/osmlab/osm-request)
[![Coverage Status](https://coveralls.io/repos/github/osmlab/osm-request/badge.svg?branch=develop)](https://coveralls.io/github/osmlab/osm-request?branch=develop)
[![GitHub Tag](https://img.shields.io/github/v/tag/osmlab/osm-request)](https://github.com/osmlab/osm-request/tags)
[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/osmlab/osm-request/build-tests-coverage.yml)](https://github.com/osmlab/osm-request/actions/workflows/build-tests-coverage.yml)
[![Coverage Status](https://coveralls.io/repos/github/osmlab/osm-request/badge.svg)](https://coveralls.io/github/osmlab/osm-request)

# OSM Request

Expand Down

0 comments on commit ae2306c

Please sign in to comment.