diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6b7d0e5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: build & test +on: + push: + branches: + - master + pull_request: + paths-ignore: + - "*.md" +jobs: + nodejs: + name: Node.js + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + node-versions: [^10, ^12, ^14, ^16, ^18] + os: [ubuntu-latest, windows-latest] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: npm install --no-audit + - run: npm run test