From 932e438409af4479b2d9ef41a6de2cf726781055 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 21 Jun 2024 11:19:52 +0800 Subject: [PATCH] test: add github action --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ .travis.yml | 4 ---- README.md | 1 - 3 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..6afc9b876 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: CI + +on: ['push', 'pull_request'] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d35c327e2..000000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js - -node_js: - - 11 diff --git a/README.md b/README.md index 7e58a78d1..b3b828540 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ [![npm package](https://img.shields.io/npm/v/@ant-design/tools.svg?style=flat-square)](https://www.npmjs.org/package/@ant-design/tools) [![NPM downloads](http://img.shields.io/npm/dm/@ant-design/tools.svg?style=flat-square)](http://npmjs.com/@ant-design/tools) -[![Travis](https://img.shields.io/travis/ant-design/antd-tools/master.svg?style=flat-square)](https://travis-ci.org/ant-design/antd-tools) Tools for Ant Design of React: https://github.com/ant-design/ant-design