setup-act
Version:
GitHub Actions for act
33 lines (25 loc) • 618 B
Plain Text
cmd := "bash"
msg := ""
IMAGE_NAME := actions_act_dev:latest
NODE_VERSION := $(shell cat ./.nvmrc)
DOCKER_BUILD := docker build . -t $(IMAGE_NAME) --build-arg NODE_VERSION=$(NODE_VERSION)
DOCKER_RUN := docker run --rm -i -t -v ${PWD}:/repo -v ~/.gitconfig:/root/.gitconfig $(IMAGE_NAME)
DOCKER_RUN_CI := docker run --rm -v ${PWD}:/repo $(IMAGE_NAME)
build:
$(DOCKER_BUILD)
run:
$(DOCKER_RUN) $(cmd)
cirun:
$(DOCKER_RUN_CI) $(cmd)
test:
$(DOCKER_RUN) npm test
all:
$(DOCKER_RUN) npm run all
ciall:
$(DOCKER_RUN_CI) npm run all