From cd39905ef756ad9e6e49f934e0ef885497caa5f8 Mon Sep 17 00:00:00 2001 From: KatarzynaPetka Date: Fri, 20 Jun 2025 13:59:47 +0200 Subject: [PATCH 1/2] GHA for pull request to master --- .github/workflows/visual-dom-diff.yml | 37 +++++++++++++++++++++++++++ .travis.yml | 3 --- 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/visual-dom-diff.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/visual-dom-diff.yml b/.github/workflows/visual-dom-diff.yml new file mode 100644 index 0000000..d5898ed --- /dev/null +++ b/.github/workflows/visual-dom-diff.yml @@ -0,0 +1,37 @@ +name: Pull request checks + +on: + pull_request: + branches: [ master ] + +env: + GH_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }} + + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ env.GH_TOKEN }} + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + + - name: Install npm dependencies + run: npm ci + + - name: Run Prettier check + run: npm run prettier + + - name: Run TSLint + run: npm run tslint + + - name: Build and test + run: npm run build \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 226567d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: node -cache: 'npm' From 2545ff22e0bf0a992c3a6d53ed33f7504ca20152 Mon Sep 17 00:00:00 2001 From: KatarzynaPetka Date: Fri, 20 Jun 2025 14:00:50 +0200 Subject: [PATCH 2/2] GHA for pull request to master --- .github/workflows/visual-dom-diff.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/visual-dom-diff.yml b/.github/workflows/visual-dom-diff.yml index d5898ed..e5a757c 100644 --- a/.github/workflows/visual-dom-diff.yml +++ b/.github/workflows/visual-dom-diff.yml @@ -3,20 +3,13 @@ name: Pull request checks on: pull_request: branches: [ master ] - -env: - GH_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }} - - + jobs: build: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 - with: - fetch-depth: 0 - token: ${{ env.GH_TOKEN }} - name: Set up Node.js uses: actions/setup-node@v4