diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..ec2e873 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,33 @@ +name: CI + +on: + pull_request: + branches: ["master"] + push: + branches: ["master"] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + node: [20, 22] + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + cache: npm + + - name: Install deps + run: npm ci + + - name: Run tests + run: npm test + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6fee949..0000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - 4 - - 8 -install: npm install