diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..ca5e50f --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,28 @@ +name: CI + +on: + pull_request: + branches: [ master ] + push: + branches: [ master ] + tags: '*' + +jobs: + runtimes-build-and-test: + + runs-on: ubuntu-latest + + steps: + - name: Install prerequisites + run: | + sudo apt update + sudo apt -y install cpanminus + cpanm --sudo --notest YAML::PP + + - uses: actions/checkout@v2 + + - name: Build all runtimes + run: make build + + - name: Run tests + run: make testv diff --git a/README.md b/README.md index 634bbf6..6f6067c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Docker images for YAML Runtimes +![.github/workflows/main.yaml/badge.svg](https://github.com/yaml/yaml-runtimes/workflows/CI/badge.svg) + * [Quickstart](#Quickstart) * [Dependencies](#Dependencies) * [Usage](#Usage) diff --git a/bin/build.pl b/bin/build.pl index d34b48c..b75dd4f 100644 --- a/bin/build.pl +++ b/bin/build.pl @@ -328,7 +328,7 @@ sub build { } my $mount_options = join ' ', map { "-v$_" } @mounts; my $cmd = sprintf - 'docker run -it --rm --user %s' + 'docker run --rm --user %s' . ' --env HOME=%s --env VERSION=%s --env SOURCE=%s --env LIBNAME=%s ' . $mount_options . " $prefix/%s /buildutils/%s",