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