Skip to content

ci: misc updates (#54) #28

ci: misc updates (#54)

ci: misc updates (#54) #28

Workflow file for this run

name: CI
on: [ push, pull_request ]
env:
CI: true
node-version: 20
jobs:
lint:
uses: haraka/.github/.github/workflows/lint.yml@master
test:
needs: lint
runs-on: ${{ matrix.os }}
services:
redis:
image: redis
ports:
- 6379:6379
strategy:
matrix:
os: [ ubuntu-latest ]
node-version: [ 18, 20 ]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
name: Node.js ${{ matrix.node-version }}
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
test-win:
needs: lint
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest ]
node-version: [ 18, 20 ]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
name: Node.js ${{ matrix.node-version }}
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test