-
Notifications
You must be signed in to change notification settings - Fork 37
46 lines (43 loc) · 1.21 KB
/
build-branch.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
name: Build Branch
on:
push:
branches:
- develop
- feature/*
pull_request:
branches:
- develop
- feature/*
jobs:
build:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: |
export MKCERT_VERSION=v1.4.4
export PLATFORM=linux
curl -L "https://github.com/FiloSottile/mkcert/releases/download/$MKCERT_VERSION/mkcert-$MKCERT_VERSION-$PLATFORM-amd64" -o mkcert
chmod +x mkcert
echo "$PWD/mkcert" >> $GITHUB_PATH
mkdir -p src/certs
./mkcert -cert-file src/certs/cert.pem -key-file src/certs/cert.key localhost 127.0.0.1
- run: npm ci
working-directory: ./src
- run: npm run build --if-present
working-directory: ./src
- name: Install Playwright Browsers
run: npx playwright install --with-deps
working-directory: ./src
- name: Run Playwright tests
run: npm test
working-directory: ./src
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: ./src/playwright-report
retention-days: 30