Sha256: 66de5352128673e8a77b798cbf00cf8c18720e3e180ff890b075c9b8c701ab76

Contents?: true

Size: 1.28 KB

Versions: 4

Compression:

Stored size: 1.28 KB

Contents

name: CI

on:
  pull_request:
  push:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest

    services:
      redis:
        image: redis
        ports:
          - 6379:6379

    strategy:
      matrix:
        ruby: ['2.6', '2.7', '3.0', '3.1']

    steps:
      - uses: actions/checkout@v3

      - name: Setup ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true

      - name: Ruby lint
        run: bundle exec rubocop

      - name: Tests
        run: bundle exec rake test

      - uses: actions/setup-node@v3
        with:
          node-version: 16
          cache: npm
          cache-dependency-path: client-app/package-lock.json

      - name: Npm install
        working-directory: client-app
        run: npm install

      - name: JS linting
        working-directory: client-app
        run: npm run lint

  publish:
    if: github.event_name == 'push' && github.ref == 'refs/heads/main'
    needs: build
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - name: Release Gem
        uses: discourse/publish-rubygems-action@v2
        env:
          RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
          GIT_EMAIL: team@discourse.org
          GIT_NAME: discoursebot

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
logster-2.11.3 .github/workflows/ci.yml
logster-2.11.2 .github/workflows/ci.yml
logster-2.11.1 .github/workflows/ci.yml
logster-2.11.0 .github/workflows/ci.yml