Skip to content

Commit

Permalink
Initial attempt at Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunne committed Dec 17, 2021
1 parent e87ea64 commit cb688d0
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on: [push, pull_request]

jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version:
- '2.6'
- '2.7'
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: bundle exec rake
build:
steps:
- uses: actions/checkout@v2
- name: Set up environment
run: |
echo "TRAVIS_PULL_REQUEST=${{ github.base_ref == '' && 'false' || 'true' }}" >> $GITHUB_ENV
echo "REGISTRY_PASSWORD=${{ secrets.REGISTRY_PASSWORD }}" >> $GITHUB_ENV
echo "REGISTRY_USERNAME=${{ secrets.REGISTRY_USERNAME }}" >> $GITHUB_ENV
- name: Run container build script
run: bin/build_container_image
env:
TRAVIS_BRANCH: ${{ env.GITHUB_REF_NAME }}

0 comments on commit cb688d0

Please sign in to comment.