diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..90696c0d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + pull_request: + push: + +permissions: + contents: read + +jobs: + test: + runs-on: ${{matrix.os}} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + node-version: ['0.10', 0.12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21] + fail-fast: false + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up Node.js ${{matrix.node-version}} + uses: actions/setup-node@v3 + with: + node-version: ${{matrix.node-version}} + - name: Install dependencies + run: npm install + - name: Build + run: node_modules/.bin/node-gyp rebuild --directory test + - name: Test + run: node_modules/.bin/tap --gc test/js/*-test.js