diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..2133bc3c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI + +on: + push: + branches: ["**"] + pull_request: + branches: ["**"] + +jobs: + test: + name: Node ${{ matrix.node }} • tests + strategy: + fail-fast: false + matrix: + node: ["9", "10", "12", "14", "16", "18", "20", "22"] + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + + - name: Print Node & npm versions + run: | + node -v + npm -v + + - name: Install dependencies + run: npm ci || npm i + + - name: Run tests with timeout + timeout-minutes: 25 + run: npm run test-with-temp-cloud diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2036647a..00000000 --- a/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ -language: node_js -dist: focal -matrix: - include: - - node_js: "9" - script: npm run test-with-temp-cloud - - node_js: "10" - script: npm run test-with-temp-cloud - - node_js: "12" - script: npm run test-with-temp-cloud - - node_js: "14" - script: npm run test-with-temp-cloud - - node_js: "16" - script: npm run test-with-temp-cloud - - node_js: "18" - script: npm run test-with-temp-cloud - - node_js: "20" - script: npm run test-with-temp-cloud - - node_js: "22" - script: npm run test-with-temp-cloud - - -notifications: - email: - recipients: - - sdk_developers@cloudinary.com