From 79ec60c713e43d8f6bf3cfa392fc13d35489f0a1 Mon Sep 17 00:00:00 2001 From: MatzFan Date: Sun, 7 Jul 2024 20:24:47 +0100 Subject: [PATCH] add github workflow --- .github/workflows/test.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5655c0a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,38 @@ +--- +name: CI + +on: + push: + branches: + - master + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + spec-ubuntu: + name: Spec - ubuntu ${{ matrix.ruby }} + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', 'head', 'jruby-head'] + + steps: + - uses: actions/checkout@v4 + - name: Install and setup tor + run: | + sudo apt-get install -y tor + tor --versioncd + pidof tor + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - name: Install dependencies + run: bundle install + - name: Run specs + run: bundle exec rspec