Skip to content

Commit

Permalink
Github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Murat Oğuz committed Nov 25, 2021
1 parent 18ccfca commit b4b6d39
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ansible-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/vagrant-up.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: vagrant-up

on: [push]

jobs:
vagrant-up:
runs-on: macos-10.15

steps:
- uses: actions/checkout@v2

- name: Cache Vagrant boxes
uses: actions/cache@v2
with:
path: ~/.vagrant.d/boxes
key: ${{ runner.os }}-vagrant-${{ hashFiles('Vagrantfile') }}
restore-keys: |
${{ runner.os }}-vagrant-
- name: Show Vagrant version
run: vagrant --version

- name: Run vagrant up
run: vagrant up

- name: ssh into box after boot
run: vagrant ssh -c "echo 'hello world!'"

0 comments on commit b4b6d39

Please sign in to comment.