From b2addee80b6150288e0304c895dd52d968bf4214 Mon Sep 17 00:00:00 2001 From: Michael Wang Date: Tue, 24 Sep 2024 18:28:39 +0800 Subject: [PATCH] ci: add gitHub actions workflow for testing and remove travis ci config --- .github/workflows/test.yml | 19 +++++++++++++++++++ .travis.yml | 6 ------ 2 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..ec492b1 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,19 @@ +name: Test + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18.x + - run: | + npm i + npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 79eed11..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: "node_js" -node_js: - - 0.4 - - 0.6 - - 0.8 - \ No newline at end of file