mirror of
https://github.com/codedread/bitjs
synced 2025-10-03 09:39:16 +02:00
30 lines
819 B
YAML
30 lines
819 B
YAML
# 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: Node.js CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [19.x, 20.x, 21.x]
|
|
# See NodeJS release schedule at https://nodejs.org/en/about/previous-releases.
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Use NodeJS ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- run: npm ci
|
|
- run: npm run build --if-present
|
|
- run: npm test
|