diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..b8e1b36 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,56 @@ +name: Tests + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + rspec: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ["2.7", "3.0", "3.1"] + + steps: + - uses: actions/checkout@v3 + + - name: Set up Ruby ${{ matrix.ruby-version }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + + - name: Install dependencies + run: | + gem install bundler + bin/setup + + - name: Run RSpec tests + run: bundle exec rspec + + integration: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ["2.7", "3.0", "3.1"] + + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Set up Ruby ${{ matrix.ruby-version }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + + - name: Install dependencies + run: | + gem install bundler + bin/setup + + - name: Run integration tests + run: bin/integration-tests diff --git a/README.md b/README.md index b6a415d..6039e21 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,6 @@ Discord Server - - Build Status - Code Climate Maintainablity