b1ddad2c99
* feat: update author and committer input defaults * Update github-actions[bot] * Update author to new email format * feat: optional input for git ops token * feat: allow push-to-fork to push to sibling repos (#2414) Fixes #2412. * build: update dist * feat: update action runtime to node 20 (#2340) * feat: add truncate warning to pull request body * perf: unshallow only when necessary * fix: remove the remote for the fork on completion * feat: infer github server and api urls * test: integration test fixes * build: bump major version * docs: update to v6 --------- Co-authored-by: Teko <112829523+Teko012@users.noreply.github.com> Co-authored-by: Benjamin Gilbert <bgilbert@backtick.net>
23 lines
540 B
Bash
Executable file
23 lines
540 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
IMAGE="cpr-integration-tests:latest"
|
|
ARG1=${1:-}
|
|
|
|
if [[ "$(docker images -q $IMAGE 2> /dev/null)" == "" || $ARG1 == "build" ]]; then
|
|
echo "Building Docker image $IMAGE ..."
|
|
|
|
cat > Dockerfile << EOF
|
|
FROM node:20-alpine
|
|
RUN apk --no-cache add git git-daemon
|
|
RUN npm install jest jest-environment-jsdom --global
|
|
WORKDIR /cpr
|
|
COPY __test__/entrypoint.sh /entrypoint.sh
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
EOF
|
|
|
|
docker build --no-cache -t $IMAGE .
|
|
rm Dockerfile
|
|
fi
|
|
|
|
docker run -v $PWD:/cpr $IMAGE
|