diff --git a/.github/workflows/test-on-push-and-pr.yml b/.github/workflows/test-on-push-and-pr.yml new file mode 100644 index 0000000..bd5c9be --- /dev/null +++ b/.github/workflows/test-on-push-and-pr.yml @@ -0,0 +1,20 @@ +name: test-on-push-and-pr + +on: + push: + branches: [ main ] + pull_request: + branches: [ '*' ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up node + uses: actions/setup-node@v1 + with: + node-version: '12' + - name: Run 'pr' target + run: make pr diff --git a/Makefile b/Makefile index 743ea16..8a3222f 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,7 @@ dev: init test # Verifications to run before sending a pull request .PHONY: pr -pr: dev test-smoke +pr: build dev test-smoke .PHONY: clean clean: diff --git a/scripts/postinstall.sh b/scripts/postinstall.sh index 573434e..6c4c9b4 100755 --- a/scripts/postinstall.sh +++ b/scripts/postinstall.sh @@ -21,6 +21,6 @@ if test "${current_path#*$node_modules_path}" != "$current_path" || [ "$BUILD" ! # Clean up source dependencies rm -rf "$deps_path"/patches - rm -rf "$deps_path"/aws-lambda-cpp* - rm -rf "$deps_path"/curl* + rm -rf "$deps_path"/aws-lambda-cpp*[^gz]$ + rm -rf "$deps_path"/curl*[^gz]$ fi diff --git a/test/integration/codebuild-local/codebuild_build.sh b/test/integration/codebuild-local/codebuild_build.sh index 64af522..ffadfa3 100755 --- a/test/integration/codebuild-local/codebuild_build.sh +++ b/test/integration/codebuild-local/codebuild_build.sh @@ -95,7 +95,7 @@ then exit 1 fi -docker_command="docker run -it " +docker_command="docker run " if isOSWindows then docker_command+="-v //var/run/docker.sock:/var/run/docker.sock -e "