-
-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (53 loc) · 1.47 KB
/
build-and-test.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: 'Build'
on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:
concurrency:
group: browserstack-test
jobs:
build-and-test:
name: 'Build & Test'
runs-on: ubuntu-latest
steps:
- name: check out
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: setup node
uses: actions/[email protected]
with:
node-version: 20
cache: 'npm'
# https://github.com/Automattic/node-canvas/wiki/Installation:-Arch-based-distributions
- run: |
sudo apt-get update
sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
- run: npm ci
- run: npm run build
- run: npm run test
- uses: actions/setup-go@v5
with:
go-version: 'stable'
- run: go install ./scripts/...
- run: core-web-browserstack
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
validate-pages-worker:
name: Validate Pages Worker
runs-on: ubuntu-latest
steps:
- name: check out
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: validate
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
wranglerVersion: '1.13.0'
workingDirectory: 'packages/pages-worker'
command: build