From 72937c1adb4d3abe723d8ef28eda44c8550dabd5 Mon Sep 17 00:00:00 2001 From: Koala Yeung Date: Wed, 10 Jan 2024 11:27:27 +0800 Subject: [PATCH 1/2] Add GitHub Actions workflow for testing --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..68bedad4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: Test + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: Install NPM v5 + run: if [[ `npm -v ` != 5* ]]; then npm i -g npm@5; fi + - name: Install Dependencies + run: npm install + - name: Test + run: grunt test From 080d55439c86cc03b63bcdf879cd7d729f075c25 Mon Sep 17 00:00:00 2001 From: Koala Yeung Date: Wed, 10 Jan 2024 11:37:36 +0800 Subject: [PATCH 2/2] Update README.md to use GitHub Actions badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e506fc09..8d313229 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# jQuery Form [![Build Status](https://travis-ci.org/jquery-form/form.svg?branch=master)](https://travis-ci.org/jquery-form/form) +# jQuery Form [![Build Status](https://github.com/jquery-form/form/workflows/Tests/badge.svg?branch=master)](https://github.com/jquery-form/form/actions?query=branch%3Amaster) ## Overview The jQuery Form Plugin allows you to easily and unobtrusively upgrade HTML forms to use AJAX. The main methods, ajaxForm and ajaxSubmit, gather information from the form element to determine how to manage the submit process. Both of these methods support numerous options which allow you to have full control over how the data is submitted.