This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
Github action to check subgraph schema againt supergraph schema #1928
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Policy | |
on: | |
push: | |
pull_request: | |
jobs: | |
lint: | |
# Deduplicate jobs from pull requests and branch pushes within the same repo. | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4.1.1 | |
- name: Setup OPA | |
uses: open-policy-agent/setup-opa@v2 | |
- name: Run OPA Lints | |
run: opa check --strict policies/ | |
test: | |
# Deduplicate jobs from pull requests and branch pushes within the same repo. | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4.1.1 | |
- name: Setup OPA | |
uses: open-policy-agent/setup-opa@v2 | |
- name: Run OPA Tests | |
run: opa test policies/ |