|  | 
|  | 1 | +name: Main | 
|  | 2 | +on: | 
|  | 3 | +  push: | 
|  | 4 | +    branches: | 
|  | 5 | +      - main | 
|  | 6 | +  pull_request: | 
|  | 7 | + | 
|  | 8 | +jobs: | 
|  | 9 | +  ruby-lint: | 
|  | 10 | +    runs-on: ubuntu-latest | 
|  | 11 | +    env: | 
|  | 12 | +      BUNDLE_APP_CONFIG: .bundle | 
|  | 13 | +    steps: | 
|  | 14 | +      - uses: actions/checkout@v4 | 
|  | 15 | +      - uses: ruby/setup-ruby@v1 | 
|  | 16 | +        with: | 
|  | 17 | +          ruby-version: '3.2' | 
|  | 18 | +          bundler-cache: true | 
|  | 19 | +      - run: bundle exec rubocop | 
|  | 20 | +  ruby-test: | 
|  | 21 | +    runs-on: ubuntu-latest | 
|  | 22 | +    env: | 
|  | 23 | +      BUNDLE_APP_CONFIG: .bundle | 
|  | 24 | +    strategy: | 
|  | 25 | +      fail-fast: false | 
|  | 26 | +      matrix: | 
|  | 27 | +        appraisal: [ 'graphql-1.10', 'graphql-1.11', 'graphql-1.12', 'graphql-1.13', 'graphql-2.0' ] | 
|  | 28 | +        ruby: [ '3.0', '3.1', '3.2' ] | 
|  | 29 | +        exclude: | 
|  | 30 | +          - appraisal: 'graphql-1.10' | 
|  | 31 | +            ruby: '3.2' | 
|  | 32 | +          - appraisal: 'graphql-1.11' | 
|  | 33 | +            ruby: '3.2' | 
|  | 34 | +          - appraisal: 'graphql-1.12' | 
|  | 35 | +            ruby: '3.2' | 
|  | 36 | +    steps: | 
|  | 37 | +      - uses: actions/checkout@v4 | 
|  | 38 | +      - uses: ruby/setup-ruby@v1 | 
|  | 39 | +        with: | 
|  | 40 | +          ruby-version: ${{ matrix.ruby }} | 
|  | 41 | +          bundler-cache: true | 
|  | 42 | +      - name: Run appraisal install | 
|  | 43 | +        uses: ./.github/actions/appraisal-install | 
|  | 44 | +        with: | 
|  | 45 | +          appraisal: ${{ matrix.appraisal }} | 
|  | 46 | +      - run: bundle config list | 
|  | 47 | +      - run: bundle exec appraisal ${{ matrix.appraisal }} bundle config list | 
|  | 48 | +      - run: bundle exec appraisal ${{ matrix.appraisal }} rake | 
|  | 49 | + | 
|  | 50 | +  integration-tests: | 
|  | 51 | +    runs-on: ubuntu-latest | 
|  | 52 | +    env: | 
|  | 53 | +      BUNDLE_APP_CONFIG: .bundle | 
|  | 54 | +    strategy: | 
|  | 55 | +      fail-fast: false | 
|  | 56 | +      matrix: | 
|  | 57 | +        appraisal: [ 'graphql-1.10', 'graphql-1.11', 'graphql-1.12', 'graphql-1.13', 'graphql-2.0' ] | 
|  | 58 | +        ruby: [ '3.0', '3.1', '3.2' ] | 
|  | 59 | +        exclude: | 
|  | 60 | +          - appraisal: 'graphql-1.10' | 
|  | 61 | +            ruby: '3.2' | 
|  | 62 | +          - appraisal: 'graphql-1.11' | 
|  | 63 | +            ruby: '3.2' | 
|  | 64 | +          - appraisal: 'graphql-1.12' | 
|  | 65 | +            ruby: '3.2' | 
|  | 66 | +    steps: | 
|  | 67 | +      - uses: actions/checkout@v4 | 
|  | 68 | +      - uses: ruby/setup-ruby@v1 | 
|  | 69 | +        with: | 
|  | 70 | +          ruby-version: ${{ matrix.ruby }} | 
|  | 71 | +          bundler-cache: true | 
|  | 72 | +      - name: Run appraisal install | 
|  | 73 | +        uses: ./.github/actions/appraisal-install | 
|  | 74 | +        with: | 
|  | 75 | +          appraisal: ${{ matrix.appraisal }} | 
|  | 76 | +      - name: Run install | 
|  | 77 | +        uses: borales/actions-yarn@v4 | 
|  | 78 | +        with: | 
|  | 79 | +          cmd: install | 
|  | 80 | +      - run: bundle exec appraisal ${{ matrix.appraisal }} yarn test | 
|  | 81 | +      - run: yarn lint | 
|  | 82 | + | 
|  | 83 | +  release: | 
|  | 84 | +    runs-on: ubuntu-latest | 
|  | 85 | +    needs: [ ruby-lint, ruby-test, integration-tests ] | 
|  | 86 | +    if: github.ref == 'refs/heads/main' | 
|  | 87 | +    env: | 
|  | 88 | +      BUNDLE_APP_CONFIG: .bundle | 
|  | 89 | +      GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }} | 
|  | 90 | +      GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | 
|  | 91 | +    steps: | 
|  | 92 | +      - uses: actions/checkout@v4 | 
|  | 93 | +      - uses: ruby/setup-ruby@v1 | 
|  | 94 | +        with: | 
|  | 95 | +          ruby-version: '3.2' | 
|  | 96 | +          bundler-cache: true | 
|  | 97 | +      - name: Run install | 
|  | 98 | +        uses: borales/actions-yarn@v4 | 
|  | 99 | +        with: | 
|  | 100 | +          cmd: install | 
|  | 101 | +      - run: npx semantic-release | 
|  | 102 | +        env: | 
|  | 103 | +          BUNDLE_FROZEN: false | 
0 commit comments