38 Commits

Author SHA1 Message Date
Paul Hinze
2adb438eee
ci: Ensure cleanup runs after notify completes
Without declaring it as a dependency the job can run in parallel and delete the workspace out from under the notify job.

Using format from this example: https://docs.github.com/en/actions/using-jobs/using-jobs-in-a-workflow#example-not-requiring-successful-dependent-jobs
2022-05-16 17:50:00 -05:00
Paul Hinze
ebd03d604b
ci: Reorder spectesting to fix success notify
Turns out you can't run a script in the workdir after you `rm -rf` the
workspace!
2022-05-13 16:23:52 -05:00
Paul Hinze
afd0346dc1
ci: Remove unnecessary vars
per https://github.com/hashicorp/vagrant-ruby/pull/270#discussion_r867266809
2022-05-10 11:14:28 -05:00
Paul Hinze
31c2390533
ci: Separate log pulling and notify on success
* Without being a separate task, log pull won't happen on failure
 * Add a job at the end for notifying on success - since these only run
   nightly and on manual trigger, seems like it'd be nice to get
   notified of something happy!
2022-05-06 16:58:51 -05:00
Paul Hinze
198649be9f
ci: Remove invalid key from workflow
See https://github.community/t/worflow-with-dispatch-and-branches-setting-suddenly-not-supported-anymore/247732/29
2022-04-29 12:41:43 -05:00
Paul Hinze
baf1d777bc
ci: Run docker provider too 2022-04-25 14:35:30 -05:00
Paul Hinze
6646cf50b4
ci: Move always() from step to job so cleanup happens on failures
The `if: always()` can work on steps as well, but in this case we need
it at the job level so it modifies the `needs` clause.

See: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-not-requiring-successful-dependent-jobs
2022-04-25 14:35:30 -05:00
Paul Hinze
dc58438476
ci: Run spectesting nightly 2022-04-25 12:26:59 -05:00
Paul Hinze
6ace8d5d9d
ci: Switch to a log artifact vs a noisy stdout 2022-04-25 12:26:59 -05:00
Paul Hinze
e5635142db
ci: Pass hashibot creds down for private gh fetching 2022-04-25 12:26:59 -05:00
Paul Hinze
152a954266
spectesting: remove docker from matrix temporarily
For the time being to simplify test runs we'll just do vbox until we get
that working smoothly
2022-04-25 12:26:59 -05:00
Paul Hinze
8d1ac0b9a3
spectesting: need submodules to build 2022-04-25 12:26:58 -05:00
Paul Hinze
c42145ae64
spectesting: Remove repo filter to allow it to run on vagrant-ruby 2022-04-25 12:26:58 -05:00
sophia
d8affe4ff4 Update ci scripts for assume role setup 2021-02-19 12:31:35 -06:00
sophia
2f4a1f6a00 Create packet instance 2020-10-26 12:55:54 -05:00
sophia
a55adf3d02 Inject ci loader bucket var 2020-10-26 12:10:50 -05:00
sophia
336001ac17 Update default branch to main 2020-10-19 16:37:10 -05:00
Chris Roberts
22795b161b Update repository name in spectesting workflow 2020-10-15 13:07:02 -07:00
sophia
55857e6f21 Readd vbox tests 2020-09-17 12:55:00 -05:00
sophia
d1c0f9268c Only run tests for docker 2020-09-17 10:21:50 -05:00
sophia
51c2b4d418 Add docker tests to spectests matrix 2020-09-16 14:51:56 -05:00
sophia
a7c6e4d0fc Retarget tests to run on main branch 2020-09-03 10:48:31 -05:00
sophia
caf5ef7c00 Get installer per release tag 2020-09-02 17:02:21 -05:00
sophia
185953a214 Run workflow on demand or repository dispatch 2020-09-02 17:02:21 -05:00
Brian Cain
9c1ba11c36 Checkout code to run CI scripts 2020-09-02 17:02:17 -05:00
Brian Cain
dbdaedcd47 Fix path for scripts in workflow config 2020-09-02 17:02:17 -05:00
Brian Cain
79eef619ee
Add back job strategy for workflow jobs 2020-05-13 09:35:45 -07:00
Brian Cain
f04137b05d
Only use hashicorp-vagrant box for now
The official bionic box does not have puppet installed, so the spec
tests will fail
2020-05-13 09:35:45 -07:00
Brian Cain
b944138193
Try env vars unquoted 2020-05-13 09:35:45 -07:00
Brian Cain
66c0a7510d
Add separate jobs for bringing up hosts and running tests on guests 2020-05-13 09:35:45 -07:00
Brian Cain
f207754694
Remove building vagrant-spec gem 2020-05-13 09:35:45 -07:00
Brian Cain
ccc5c43934
Only run tests on blackbox repo 2020-05-13 09:35:45 -07:00
Brian Cain
984d1d74c0
Split out packet creation from test runner 2020-05-13 09:35:45 -07:00
Brian Cain
6afcaa1776
Add comments 2020-05-13 09:35:45 -07:00
Brian Cain
38cb738017
Setup ruby for building vagrant-spec gem 2020-05-13 09:35:45 -07:00
Brian Cain
b326646fe5
Add more descriptive title to job 2020-05-13 09:35:45 -07:00
Brian Cain
e8a4380a00
Add initial scripts for running spec tests on packet 2020-05-13 09:35:45 -07:00
Brian Cain
9dbf2c5129
Add initial files for running spec tests 2020-05-13 09:35:45 -07:00