Skip to content

Commit

Permalink
Enable basic GitHub Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
friederbluemle committed Jun 8, 2021
1 parent 6b518ce commit 8c5b28e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: ci
on:
push:
branches:
- '*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['12', '14', '16']
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run lint
- run: npm test
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# car-buying-service

A Node.js/[hapi][1] server that supports the car-buying app.
[![ci][1]][2]

A Node.js/[hapi][3] server that supports the car-buying app.
It provides a set of service end points that support create/update endpoints
for the data used in the car-buying app.

Expand Down Expand Up @@ -28,4 +30,6 @@ npm dev
| /create-transaction | POST | Create a new transaction |
| /update-transaction | POST | Update a transaction |

[1]: https://hapi.dev/
[1]: https://github.com/electrode-io/car-buying-service/workflows/ci/badge.svg
[2]: https://github.com/electrode-io/car-buying-service/actions
[3]: https://hapi.dev/

0 comments on commit 8c5b28e

Please sign in to comment.