Skip to content

Commit

Permalink
Merge pull request #396 from ggiamarchi/ci-update
Browse files Browse the repository at this point in the history
Ci update
  • Loading branch information
ggiamarchi authored Nov 24, 2022
2 parents 7f41e0f + dab5c55 commit b6a51c1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 36 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build

on: [push, pull_request]

permissions:
contents: read

jobs:

build:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3

- name: Install bundler
run: |
sudo gem install bundler
- name: Install dependencies
run: |
cd source
bundle install
- name: Run tests
run: |
cd source
bundle exec rake
- name: Build gem package
run: |
cd source
gem build *.gemspec
mv $(ls -1 | grep -e "\.gem$") vagrant-openstack-provider.gem
- name: Archive gem package
uses: actions/upload-artifact@v3
with:
name: vagrant-openstack-provider.gem
path: source/vagrant-openstack-provider.gem
36 changes: 0 additions & 36 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit b6a51c1

Please sign in to comment.