From 37132e8d3e983960cc8039c85edf92dbdf692053 Mon Sep 17 00:00:00 2001 From: "mr. M" Date: Sun, 20 Oct 2024 11:11:49 +0200 Subject: [PATCH] Refactor GitHub workflows to update submodules and test pull requests --- .github/workflows/pr-test.yml | 37 +++++++++++++++++++++++++ .github/workflows/update-submodules.yml | 3 -- 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/pr-test.yml diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml new file mode 100644 index 000000000..8de933416 --- /dev/null +++ b/.github/workflows/pr-test.yml @@ -0,0 +1,37 @@ + +name: Pull request test + +on: + pull_request: + branches: + - dev + +jobs: + pr-test: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + submodules: 'recursive' + token: ${{ secrets.DEPLOY_KEY }} + + - name: Install Node.js and pnpm + uses: actions/setup-node@v3 + with: + node-version: 20 + + - name: Install pnpm + run: npm install -g pnpm + + - name: Install Surfer + run: | + npm i -g @zen-browser/surfer + + - name: Download firefox + run: | + surfer download + + - name: Import patches + run: | + surfer i diff --git a/.github/workflows/update-submodules.yml b/.github/workflows/update-submodules.yml index 2c2b48c4b..74f0326ad 100644 --- a/.github/workflows/update-submodules.yml +++ b/.github/workflows/update-submodules.yml @@ -5,9 +5,6 @@ on: push: branches: - dev - pull_request: - branches: - - dev workflow_dispatch: workflow_call: # This is a custom event that we will trigger manually