From 1e4fa2ea31f364ed88d1d1f69f12bfa78b44f6e6 Mon Sep 17 00:00:00 2001 From: Brooke Kuhlmann Date: Wed, 20 Dec 2023 10:21:05 -0700 Subject: [PATCH] Added GitHub Action --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1759b16 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: Continuous Integration + +on: [push, pull_request] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + ref: ${{github.head_ref}} + + - name: Ruby Setup + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + + - name: Environment + run: printenv | sort + + - name: Git + run: | + git fetch --depth=1 --tags + git log --pretty=format:"%h %s" origin/main..origin/ci + + - name: Build + run: bundle exec rake