Remove early pushes #26
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: news/graphql | |
on: [push] | |
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: Install Protoc | |
uses: arduino/setup-protoc@v3 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Initialize Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Test GraphQL API | |
working-directory: ./graphql | |
run: cargo test --all-features | |
- name: Clippy | |
working-directory: ./graphql | |
run: cargo clippy |