Skip to content

Commit

Permalink
fix syntax, add redis and codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwitt committed Dec 15, 2023
1 parent c58b9c6 commit 76c7672
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,19 @@ jobs:
strategy:
matrix:
version: [16, 18, 20]
runs-on: ubuntu-20.04
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
services:
redis:
image: redis
ports:
- 6379:6379
options: --health-cmd="redis-cli ping" --health-interval=10s --health-timeout=5s --health-retries=5
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: {{ $matrix.version }}
node-version: ${{ matrix.version }}
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
Expand All @@ -37,3 +44,7 @@ jobs:
- run: pnpm install
- run: npm test
- run: npm test -- --coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 76c7672

Please sign in to comment.