123456789101112131415161718192021222324252627 |
- name: Node.js CI
- on:
- push:
- branches: [ master ]
- pull_request:
- branches: [ master ]
- jobs:
- test:
- runs-on: ${{ matrix.platform }}
- strategy:
- fail-fast: true
- matrix:
- platform: [ubuntu-20.04]
- node-version: [10.x, 12.x, 14.x, 16.x, 18.x]
- steps:
- - uses: actions/checkout@v3
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v3
- with:
- node-version: ${{ matrix.node-version }}
- - run: npm ci
- - run: npm run build --if-present
- - run: npm test
|