Skip to content

Pass requisite data into graph proxy query resolvers #39

Pass requisite data into graph proxy query resolvers

Pass requisite data into graph proxy query resolvers #39

name: Graph Proxy Code
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
env:
ARGO_SERVER_SCHEMA_URL: https://raw.githubusercontent.com/argoproj/argo-workflows/main/api/jsonschema/schema.json
steps:
- name: Checkout source
uses: actions/[email protected]
- name: Install stable toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
default: true
- name: Cache Rust Build
uses: Swatinem/[email protected]
- name: Create argo workflows openapi lib file
run: |
mkdir graph-proxy/argo-workflows-openapi/src
printf "\n" > graph-proxy/argo-workflows-openapi/src/lib.rs
- name: Check Formatting
uses: actions-rs/[email protected]
with:
command: fmt
args: >
--manifest-path graph-proxy/Cargo.toml
--all
--check
- name: Lint with Clippy
uses: actions-rs/[email protected]
with:
command: clippy
args: >
--manifest-path graph-proxy/Cargo.toml
--all-targets
--all-features
--no-deps
--
--deny warnings
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
env:
ARGO_SERVER_SCHEMA_URL: https://raw.githubusercontent.com/argoproj/argo-workflows/main/api/jsonschema/schema.json
steps:
- name: Checkout source
uses: actions/[email protected]
- name: Install stable toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
default: true
- name: Cache Rust Build
uses: Swatinem/[email protected]
- name: Test
uses: actions-rs/[email protected]
with:
command: test
args: >
--manifest-path graph-proxy/Cargo.toml
--all-targets
--all-features