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 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.