From 23fc3579d2c843de1d50be9315561d0ff750a83b Mon Sep 17 00:00:00 2001 From: adimiz1 Date: Mon, 23 Jun 2025 12:56:58 +0300 Subject: [PATCH 1/3] Remove travis and add github action --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ .travis.yml | 22 ---------------------- 2 files changed, 20 insertions(+), 22 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..887366d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +# .github/workflows/ci.yml +name: CI – Cloudinary React Native SDK + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: npm + + - run: npm ci + - run: npm test + - run: npm run coverage diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a159f77..0000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -dist: focal # Use Ubuntu 20.04 to get glibc >= 2.31 -language: node_js -node_js: - - "18" - -cache: - directories: - - ~/.npm - -install: - - npm ci # Use lockfile for consistent clean install - -script: - - npm test # Run your tests - -after_success: - - npm run coverage # Assumes you have a "coverage" script defined - -notifications: - email: - recipients: - - sdk_developers@cloudinary.com From b008708014a18ae91585809f567b01cc0ecf8c24 Mon Sep 17 00:00:00 2001 From: adimiz1 Date: Mon, 23 Jun 2025 12:59:59 +0300 Subject: [PATCH 2/3] Update ubuntu --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 887366d..3c5fb56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ on: [push, pull_request] jobs: test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 From d2f6c91271a4a86290a4df30f933a7a846b1d248 Mon Sep 17 00:00:00 2001 From: adimiz1 Date: Mon, 23 Jun 2025 13:03:18 +0300 Subject: [PATCH 3/3] Update script --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c5fb56..a6ae739 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,5 +16,5 @@ jobs: cache: npm - run: npm ci + - run: npm run prepack - run: npm test - - run: npm run coverage