This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
Explain archival state #398
Workflow file for this run
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: npmjs | |
on: | |
push: | |
pull_request: | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
TEST_REDIS_MAIN_PORT: 6379 | |
TEST_REDIS_CACHE_PORT: 6380 | |
strategy: | |
matrix: | |
node: ['14', '16'] | |
services: | |
redis-6379: | |
image: redis | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- '6379:6379' | |
redis-6380: | |
image: redis | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- '6380:6379' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
id: cache | |
with: | |
path: node_modules | |
key: ${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }} | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
registry-url: https://registry.npmjs.org/ | |
- run: npm install -g npm@^6 | |
- if: steps.cache.outputs.cache-hit != 'true' | |
run: npm ci | |
- run: npm test |