synapsecns/sanguine

View on GitHub
.github/workflows/fail-on-needs-generate.yaml

Summary

Maintainability
Test Coverage
name: CI

on:
  pull_request:
    types: [ labeled ]

jobs:
  check-generate-go:
    if:  ${{ contains( github.event.label.name, 'needs-go-generate') }}
    runs-on: ubuntu-latest

    steps:
      - name: Fail on needs-go-generate
        run: echo Failed, needs go generate. && exit 1
  check-generate-yarn:
    if: ${{ contains( github.event.label.name, 'needs-yarn-install') }}
    runs-on: ubuntu-latest

    steps:
      - name: Fail on needs-go-yarn
        run: echo Failed, needs yarn install. && exit 1