Skip to content

Merge pull request #250 from chrisfosterelli/dependabot/npm_and_yarn/… #29

Merge pull request #250 from chrisfosterelli/dependabot/npm_and_yarn/…

Merge pull request #250 from chrisfosterelli/dependabot/npm_and_yarn/… #29

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
node:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [19.x, 18.x, 16.x, 15.x, 14.x]
steps:
- uses: actions/checkout@v3
- name: Configure ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install -g npm@latest
- run: npm ci
- run: npm test
env:
AKISMET_KEY: ${{ secrets.AKISMET_KEY }}
results:
if: ${{ always() }}
runs-on: ubuntu-latest
name: all supported versions
needs: [node]
steps:
- run: |
result="${{ needs.node.result }}"
if [[ $result == "success" || $result == "skipped" ]]; then
exit 0
else
exit 1
fi