Skip to content

Commit

Permalink
Test against latest node versions (#1)
Browse files Browse the repository at this point in the history
* Test against latest node versions

Check against both the maintained lts and the major releases after to
ensure we are not going to be suprised by any breaking changes.

* Add coveralls and coverage status
  • Loading branch information
tgandrews committed Oct 7, 2020
1 parent d1167c0 commit d4b6e78
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,37 @@ on:
- main

jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: npm ci
- run: npm run format -- --check
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["12"]
name: Node ${{ matrix.node }} sample
node: ["12", "13", "14"]
name: Test on Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run format -- --check
- run: npm run test -- --coverage
- name: coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
finish:
needs: [formatting, test]
runs-on: ubuntu-latest
steps:
- name: Coveralls finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

A simple but production ready dynamodb mapper.

[![Coverage Status](https://coveralls.io/repos/github/tgandrews/omanyd/badge.svg?branch=main)](https://coveralls.io/github/tgandrews/omanyd?branch=main)

## Features

- Simplified data modeling and mapping to DynamoDB types
Expand Down

0 comments on commit d4b6e78

Please sign in to comment.