diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..454deb0b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: Specs, linting, and security checks + +on: + workflow_dispatch: + pull_request: + types: [opened, reopened, synchronize] + +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + +env: + FORCE_COLOR: "1" + +jobs: + rspec_rubocop_bundle-audit: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + + - name: Build dependencies + run: bundle exec rake tests:prepare + + - name: Run tests + run: bundle exec rake spec + + - name: Run security checks + run: bundle exec rake security + + - name: Run linter + run: bundle exec rake rubocop diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c5a17513..00000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: ruby - -branches: - only: - - master -rvm: - - 2.5.3 - -jdk: - - oraclejdk14 - -cache: bundler --without development - -before_script: - - bundle exec rake tests:prepare