From 8b7d8bf1f906e6453e2352d1d9e967848a18fff2 Mon Sep 17 00:00:00 2001 From: Sam Stickland Date: Wed, 24 May 2023 08:31:57 -0400 Subject: [PATCH] Add github workflows for CI --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ test/automated.rb | 5 ++--- 2 files changed, 24 insertions(+), 3 deletions(-) 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..c69faa5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: CI + +on: push + +jobs: + build: + runs-on: ubuntu-latest + + env: + ImageOS: ubuntu20 + BUNDLE_RUBYGEMS__PKG__GITHUB__COM: ${{ secrets.BUNDLE_RUBYGEMS__PKG__GITHUB__COM }} + BUNDLE_GITHUB__COM: ${{ secrets.BUNDLE_GITHUB__COM }} + + steps: + - uses: actions/checkout@v3 + + - uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + + - name: Tests + run: bundle exec ruby test/automated.rb diff --git a/test/automated.rb b/test/automated.rb index 7a121aa..8f55d26 100644 --- a/test/automated.rb +++ b/test/automated.rb @@ -1,5 +1,4 @@ require_relative "./test_init" -TestBench::CLI.( - exclude_file_pattern: %r{/_|sketch|(_init\.rb|_tests\.rb)\z} -) +TestBench::Run.('test/automated') +