Skip to content

Commit

Permalink
Add cache for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hewigovens committed Apr 1, 2024
1 parent 0928e41 commit 1cd8c44
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

env:
CARGO_TERM_COLOR: always
Expand All @@ -13,8 +13,20 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v3

- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Run tests
run: cargo test --all --verbose
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# reqwest-enum
[![CI](https://github.com/hewigovens/reqwest-enum/actions/workflows/ci.yml/badge.svg)](https://github.com/hewigovens/reqwest-enum/actions/workflows/ci.yml)

Typed enum HTTP API for reqwest, inspired by Moya.

## Installation

TBD

## Example

### httpbin.org

### JSON-RPC

TBD

## License

MIT

0 comments on commit 1cd8c44

Please sign in to comment.