Skip to content

Commit

Permalink
Add Rust CI
Browse files Browse the repository at this point in the history
  • Loading branch information
RealHinome authored Aug 24, 2024
1 parent 5d7eb07 commit f69343a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: news/graphql

on: [push, pull_request]

jobs:
graphql:
name: cargo build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache Cargo registry
uses: actions/cache@v3
with:
path: |
~/.cargo
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Initialize Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Test GraphQL API
run: cargo test --all-features
- name: Clippy
run: cargo clippy

0 comments on commit f69343a

Please sign in to comment.