-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (29 loc) · 1.15 KB
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: pr
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
pr:
name: pr
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: install dependencies
run: |
shopt -s inherit_errexit
set -xeEo pipefail
export DEBIAN_FRONTEND=noninteractive
apt-get -qq update
apt-get -qq install curl
curl -fsSLo /usr/share/keyrings/brave-browser-nightly-archive-keyring.gpg https://brave-browser-apt-nightly.s3.brave.com/brave-browser-nightly-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/brave-browser-nightly-archive-keyring.gpg] https://brave-browser-apt-nightly.s3.brave.com/ stable main" >/etc/apt/sources.list.d/brave-browser-nightly.list
apt-get -qq update
apt-get -qq --no-install-recommends install brave-browser-nightly
- name: test
run: |
shopt -s inherit_errexit
set -xeEo pipefail
sed -i 's,pagegraph:.*,pagegraph: "/usr/bin/brave-browser-nightly",' test/config.js
npm install
npm run test