-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
11 support strykerjs to be ran with this action (#16)
* test if composite can run docker container * update to right image * revert to local docker image * run local docker image * some other test * run local docker image * does this work? * temp test * update * update arg ref * test for public package * test for public package * chmod stuff; * removed html reporter * update docker image with arguments * does this work? * use github workspace * update * mount github workspace inside of container * shell is mandatory * update * changed target of mount to base * added LS to see what happens.... * list directory * update * update * update * update * update * update * update * update * added workspace to testporject ref * removed ls command * update dockerfile stuff; * renamed stryker.net dockerfile * update * update * update * update * update packge reference * remove not working stuff; * added stryker version * update * update readme * update input parameter name * update base image name * added strykerJS base image * bring back the html report * run strykerJS config * run strykerJS from the pipeline
- Loading branch information
Showing
9 changed files
with
107 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: StrykerJS base image | ||
run-name: ${{ github.actor }} is creating a new StrykerJS base image. | ||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: stryker-mutator/run-strykerjs | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@b4bedf8053341df3b5a9f9e0f2cf4e79e27360c6 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: ./StrykerJS.Dockerfile | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM node:14 | ||
|
||
COPY strykerjs-entrypoint.sh.sh /entrypoint.sh | ||
RUN npm install -g stryker-cli | ||
|
||
RUN chmod +x entrypoint.sh | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
# Container image that runs your code | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0 | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
COPY stryker-net-entrypoint.sh.sh /entrypoint.sh | ||
RUN dotnet tool install -g dotnet-stryker | ||
|
||
RUN chmod +x entrypoint.sh | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh -l | ||
testProject=$1 | ||
|
||
# export PATH="$PATH:/root/.dotnet/tools" | ||
|
||
echo "Changing direcotry to $testProject" | ||
cd $testProject | ||
|
||
echo "Starting StrykerJS run" | ||
stryker run |