Skip to content

Commit

Permalink
add github workflow
Browse files Browse the repository at this point in the history
The GitHub job gets triggered only when the label
`ci-check/vagrant-setup` gets added to a PR.

The job runs on a self-hosted GitHub runner on Packet
  • Loading branch information
Gianluca Arbezzano committed Jul 27, 2020
1 parent fd565c2 commit c816062
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/vagrant-packet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Setup with Vagrant on Packet
on:
push:
pull_request:
types: [labeled]

jobs:
vagrant-setup:
if: contains(github.event.pull_request.labels.*.name, 'ci-check/vagrant-setup')
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Vagrant Test
run: |
export VAGRANT_DEFAULT_PROVIDER="virtualbox"
go test -v ./test/_vagrant

0 comments on commit c816062

Please sign in to comment.