From 422591890e7fcf9cd8013ed5f7b0651af80c8468 Mon Sep 17 00:00:00 2001 From: Justin Halsall Date: Wed, 1 Apr 2026 12:00:00 +0800 Subject: [PATCH] Replace travis ci with github actions (#1043) --- .github/workflows/ci-cd.yml | 41 +++++++++++++++++++++++++++++++++++++ .travis.yml | 16 --------------- 2 files changed, 41 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/ci-cd.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml new file mode 100644 index 00000000..6f98b26d --- /dev/null +++ b/.github/workflows/ci-cd.yml @@ -0,0 +1,41 @@ +name: Tests + +on: [push, pull_request_target] + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + release: + name: Tests + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + with: + # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits + fetch-depth: 0 + + - name: Setup Node.js lts/* + uses: actions/setup-node@v3 + with: + node-version: lts/* + + - name: Install Dependencies + run: yarn + + - name: Build Project + run: yarn build:all + + - name: Check types + run: yarn turbo run check-types + + - name: Run tests + run: xvfb-run --server-args="-screen 0 1920x1080x24" yarn test + + - name: Upload diff images to GitHub + uses: actions/upload-artifact@v3 + if: failure() + with: + name: image-diff + path: packages/rrweb/test/e2e/__image_snapshots__/__diff_output__/*.png + if-no-files-found: ignore diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b122c43a..00000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: node_js - -os: linux - -dist: focal - -node_js: - - lts/* - -install: - - yarn - -script: - - yarn build:all - - yarn turbo run check-types - - xvfb-run --server-args="-screen 0 1920x1080x24" yarn test