Build moment-timezone 0.5.46 #127
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: CI tests | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
- release* | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# Use the latest version of Node.js, plus the 3 most recent LTS lines | |
node-version: | |
- latest | |
- lts/* | |
- lts/-1 | |
- lts/-2 # Probably EOL depending on release schedules, but still good to test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Run tests | |
run: npm test |