Skip to content

Commit

Permalink
fix(deploy): Added tests runner
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Sep 18, 2023
1 parent 8e2bd88 commit b382569
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Run tests

on:
push:
pull_request:

jobs:
test:
strategy:
matrix:
node: [16.x, 18.x, 20.x]
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
# Service containers to run with `container-job`
services:
# Label used to access the service container
redis:
# Docker Hub image
image: redis
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install
- name: Run tests
run: npm test
env:
EENGINE_REDIS: redis://127.0.0.1:6379/1

0 comments on commit b382569

Please sign in to comment.