From e5e3ff86eb4ff0c08106a55aa3a8a4a14aede62b Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Sun, 26 Sep 2021 09:38:41 +0200 Subject: [PATCH] Move from Travis CI to GitHub Actions --- .github/workflows/test.yml | 45 ++++++++++++++++++++++++++++++++++++++ .travis.yml | 13 ----------- 2 files changed, 45 insertions(+), 13 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 000000000..5476f074c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,45 @@ +name: Test +on: + push: + pull_request: +env: + FORCE_COLOR: 2 +jobs: + full: + name: Node.js 16 Full + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + - name: Install Node.js + uses: actions/setup-node@v2 + with: + node-version: 16 + - name: Install dependencies + uses: bahmutov/npm-install@v1 + - name: Run tests + run: yarn test + short: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: + - 14 + - 12 + - 10 + - 8 + - 6 + name: Node.js ${{ matrix.node-version }} Quick + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + - name: Install Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + uses: bahmutov/npm-install@v1 + with: + install-command: yarn --frozen-lockfile --ignore-engines + - name: Run unit tests + run: npx jest diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a36c7f80d..000000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: node_js -cache: yarn -node_js: - - node - - "10" - - "12" - - "8" -install: - - yarn install --ignore-engines -matrix: - include: - node_js: "6" - script: yarn run jest