diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 0c31c2b..9b994bd 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -9,12 +9,19 @@ 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 @@ -22,5 +29,17 @@ jobs: 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 diff --git a/README.md b/README.md index f0cea75..3072c56 100644 --- a/README.md +++ b/README.md @@ -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