Skip to content

Commit 7cc981d

Browse files
authored
Merge pull request #715 from cloudinary/chore/ci-gha-migrate-travis
CI: migrate from Travis to GitHub Actions (split legacy/modern)
2 parents 923a66e + 55313e7 commit 7cc981d

File tree

2 files changed

+37
-26
lines changed

2 files changed

+37
-26
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["**"]
6+
pull_request:
7+
branches: ["**"]
8+
9+
jobs:
10+
test:
11+
name: Node ${{ matrix.node }} • tests
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
node: ["9", "10", "12", "14", "16", "18", "20", "22"]
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 30
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: ${{ matrix.node }}
26+
27+
- name: Print Node & npm versions
28+
run: |
29+
node -v
30+
npm -v
31+
32+
- name: Install dependencies
33+
run: npm ci || npm i
34+
35+
- name: Run tests with timeout
36+
timeout-minutes: 25
37+
run: npm run test-with-temp-cloud

.travis.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)