Skip to content

next

next #21

Workflow file for this run

name: test

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml: (Line: 13, Col: 17, Idx: 188) - (Line: 13, Col: 21, Idx: 192): While scanning a plain scalar, find unexpected ':'.
on: [push]
jobs:
test:
runs-on: ubuntu-latest
container: node:20-alpine
services:
redis-stack:
image: redis/redis-stack:7.2.0-v12
ports: [6379:6379]
redis-8:
image: redis:8.0-M01
ports: [6380:6379]
steps:
- uses: actions/checkout@v4
- run: yarn install --frozen-lockfile
- run: yarn compile
- run: yarn test:all
env:
REDIS_HOST: redis-stack
REDIS_PORT: 6379
- run: yarn test:coverage
env:
REDIS_HOST: redis-8
REDIS_PORT: 6378
# for codecov
- run: apk add git curl gnupg coreutils
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
file: ./coverage/lcov.info
os: alpine
token: ${{ secrets.CODECOV_TOKEN }}