diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a6ae739 --- /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-22.04 + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: npm + + - run: npm ci + - run: npm run prepack + - run: npm test 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