-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
39 lines (34 loc) · 1.18 KB
/
buildspec.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
## buildspec.yml
version: 0.2
batch:
fast-fail: false
build-matrix:
dynamic:
buildspec:
- buildspec.yml
env:
variables:
WORKER:
- 1
- 2
- 3
phases:
install:
runtime-versions:
nodejs: 18
commands:
- npm ci
- npx playwright install
- npx playwright install-deps
build:
commands:
# Set COMMIT_INFO variables to override the default values. See https://currents.dev/readme/runs/run-details#playwright-cypress-git-information
# - export COMMIT_INFO_BRANCH="$(git rev-parse HEAD | xargs git name-rev |
# cut -d' ' -f2 | sed 's/remotes\/origin\///g')"
# - export COMMIT_INFO_MESSAGE="$(git log -1 --pretty=%B)"
# - export COMMIT_INFO_EMAIL="$(git log -1 --pretty=%ae)"
# - export COMMIT_INFO_AUTHOR="$(git log -1 --pretty=%an)"
# - export COMMIT_INFO_SHA="$(git log -1 --pretty=%H)"
# - export COMMIT_INFO_REMOTE="$(git config --get remote.origin.url)"
# update shard details according to overall # of containers
- npx pwc --project-id bnsqNa --key $CURRENTS_RECORD_KEY --ci-build-id $CODEBUILD_INITIATOR --shard $WORKER/3