Skip to content

Commit a78bfe5

Browse files
authoredDec 2, 2021
Build: Switch from Travis to GitHub Actions
Closes gh-445
1 parent 20a2f72 commit a78bfe5

File tree

3 files changed

+35
-8
lines changed

3 files changed

+35
-8
lines changed
 

‎.github/workflows/node.js.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
# Node.js 10 is required by jQuery infra
12+
NODE_VERSION: [10.x, 16.x]
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Cache
18+
uses: actions/cache@v2
19+
with:
20+
path: ~/.npm
21+
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }}
22+
restore-keys: |
23+
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-npm-lock-
24+
25+
- name: Use Node.js ${{ matrix.NODE_VERSION }}
26+
uses: actions/setup-node@v2.1.2
27+
with:
28+
node-version: ${{ matrix.NODE_VERSION }}
29+
30+
- name: Install npm dependencies
31+
run: npm install
32+
33+
- name: Run test
34+
run: npm run ci

‎.travis.yml

-7
This file was deleted.

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/jquery/jquery-migrate.svg?branch=main)](https://travis-ci.org/jquery/jquery-migrate)
1+
![CI Status](https://github.com/jquery/jquery-migrate/actions/workflows/node.js.yml/badge.svg?branch=main)
22

33
#### NOTE: To upgrade to jQuery 3.0, you first need version 1.12.x or 2.2.x. If you're using an older version, first upgrade to one of these versions using [jQuery Migrate 1.x](https://github.com/jquery/jquery-migrate/tree/1.x-stable#readme), to resolve any compatibility issues. For more information about the changes made in jQuery 3.0, see the [upgrade guide](https://jquery.com/upgrade-guide/3.0/) and [blog post](https://blog.jquery.com/2016/06/09/jquery-3-0-final-released/).
44

0 commit comments

Comments
 (0)
Please sign in to comment.