Pass requisite data into graph proxy query resolvers #39
Workflow file for this run
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: 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 |