[SP-13330] housekeeping, switch away from travis #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: ['opened', 'reopened', 'synchronize'] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
nodejs: [ '18', '20', '21', '22' ] | |
runs-on: ubuntu-latest | |
container: alpine:latest | |
permissions: | |
actions: write | |
contents: read | |
pull-requests: write | |
services: | |
redis: | |
image: redis | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.nodejs }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.nodejs }} | |
- run: yarn install --frozen-lockfile | |
- name: 'Run Tests' | |
run: yarn test | |
env: | |
REDIS_HOST: redis |