From 857ad32892f5e4146a39df6f3d876538c00033f6 Mon Sep 17 00:00:00 2001 From: Michael Telford Date: Tue, 26 Mar 2024 18:02:23 +0000 Subject: [PATCH] Setup github actions CI/CD --- .github/workflows/wgit.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/wgit.yaml diff --git a/.github/workflows/wgit.yaml b/.github/workflows/wgit.yaml new file mode 100644 index 00000000..5d9f07d6 --- /dev/null +++ b/.github/workflows/wgit.yaml @@ -0,0 +1,22 @@ +name: wgit +on: [push] +jobs: + wgit-ci: + runs-on: ubuntu-22.04 + services: + mongodb: + image: michaeltelford/mongo-wgit + ports: + - 27017:27017 + env: + WGIT_CONNECTION_STRING: "mongodb://rubyapp:abcdef@localhost/crawler" + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + # ruby-version: '3.3' # Not needed with a .ruby-version file + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: ci + run: bundle exec toys ci + - name: docs + run: bundle exec toys generate_rubydocs