Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Actions workflow #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion bin/build.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down