diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..acdc0799 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: Node.js CI + +on: + - push + - pull_request + +jobs: + build: + + runs-on: ${{ matrix.os }} + + strategy: + matrix: + node-version: [lts/*, latest] + os: [ubuntu-latest, macos-latest, windows-latest] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + 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' + + - run: npm install + + - run: npm run build --if-present + + - run: npm run test