Sha256: e490edb321f36bfcc027df7dc79ed143c296c9d8624149167ffdafe85de50483

Contents?: true

Size: 1.23 KB

Versions: 4

Compression:

Stored size: 1.23 KB

Contents

name: Test

on:
  pull_request:

jobs:
  test:
    runs-on: ubuntu-latest

    env:
      RAILS_ENV: test
      REDIS_URL: redis://localhost:6379/0
      RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
      SLACK_LOG_URL: http://slack.com/the_log_room

   # Service containers to run; note that this is duplicated
   # in sorbet.yml due to a limitation in GitHub Actions
   # (services can only be defined per job)
    services:
      redis:
        # Docker Hub image name
        image: redis:6.2-alpine
        ports: ["6379:6379"]
        # Set health checks to wait until redis has started
        options: >-
          --health-cmd "redis-cli ping" --health-interval 10s --health-timeout
          5s --health-retries 5

    steps:
      - uses: actions/checkout@v3
        with:
          ref: ${{github.ref}} # checkout branch not SHA
          fetch-depth: 0

      - uses: ./.github/actions/setup

      - name: Run tests
        run: |
          script/ci

  test-licenses:
    needs: test
    runs-on: ubuntu-latest

    if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }}
    steps:
      - uses: actions/checkout@v3

      - uses: ./.github/actions/setup

      - name: Verifying licenses
        run: script/licenses --verify

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hephaestus-0.1.3 templates/.github/workflows/test.yml
hephaestus-0.1.2 templates/.github/workflows/test.yml
hephaestus-0.1.1 templates/.github/workflows/test.yml
hephaestus-0.0.2 templates/.github/workflows/test.yml