Skip to content

Add automatic retry support with exponential backoff #1021

Add automatic retry support with exponential backoff

Add automatic retry support with exponential backoff #1021

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
inputs:
ref:
description: "Branch or ref to run CI on"
required: false
default: ""
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 19.x, 20.x, 22.x]
steps:
# v5.0.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
with:
ref: ${{ github.event.inputs.ref || github.ref }}
- name: Use Node.js ${{ matrix.node-version }}
# v5.0.0
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
- run: npm run lint
- run: npm test