Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
sunli829 committed May 9, 2024
2 parents 635950f + aee75db commit 4aed934
Show file tree
Hide file tree
Showing 66 changed files with 658 additions and 222 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ on:
jobs:
deploy_en:
name: Deploy book on gh-pages
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install mdBook
uses: peaceiris/actions-mdbook@v1
- name: Render book
Expand All @@ -25,10 +25,10 @@ jobs:
mv docs/zh-CN/gh-pages gh-pages/zh-CN
mv docs/index.html gh-pages
- name: Deploy
uses: peaceiris/actions-gh-pages@v2.5.1
uses: peaceiris/actions-gh-pages@v3
with:
emptyCommits: true
keepFiles: false
allow_empty_commit: true
keep_files: false
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
Expand Down
46 changes: 20 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,16 @@ jobs:
fail-fast: false
matrix:
include:
- { rust: stable, os: ubuntu-20.04 }
- { rust: stable, os: ubuntu-22.04 }
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
components: rustfmt
override: true
- name: Build with all features
run: cargo build --all-features
- name: Build
Expand All @@ -43,17 +42,16 @@ jobs:
fail-fast: false
matrix:
include:
- { rust: 1.75.0, os: ubuntu-20.04 }
- { rust: 1.75.0, os: ubuntu-22.04 }
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
components: rustfmt
override: true
- name: Build with all features
run: cargo build --all-features
- name: Build
Expand All @@ -70,16 +68,15 @@ jobs:
fail-fast: false
matrix:
include:
- { rust: nightly-2023-09-07, os: ubuntu-20.04 }
- { rust: nightly-2023-09-07, os: ubuntu-22.04 }
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt
- name: Check format
run: cargo +${{ matrix.rust }} fmt --all -- --check
Expand All @@ -94,36 +91,34 @@ jobs:
fail-fast: false
matrix:
include:
- { rust: stable, os: ubuntu-20.04 }
- { rust: stable, os: ubuntu-22.04 }
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
override: true
components: clippy
- name: Check with clippy
run: cargo clippy --all

book_examples:
name: Test book examples
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
- name: Install mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: "0.4.22"
mdbook-version: "0.4.37"
- name: Build with all features
run: cargo build --workspace --all-features
- name: Run book tests for en language
Expand All @@ -140,16 +135,15 @@ jobs:
fail-fast: false
matrix:
include:
- { rust: stable, os: ubuntu-20.04 }
- { rust: stable, os: ubuntu-22.04 }
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
override: true
components: clippy, rustfmt
- name: Check examples with clippy
run: cargo clippy --all
Expand All @@ -166,7 +160,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: AutoCorrect
uses: huacnlee/autocorrect-action@v2
Expand Down
22 changes: 12 additions & 10 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,29 @@ on:

jobs:
cover:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.75.0
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
version: "0.18.0"
args: --avoid-cfg-tarpaulin --all-features --workspace
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Upload to codecov.io
uses: codecov/codecov-action@v1.0.2
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
files: lcov.info
fail_ci_if_error: true
- name: Archive code coverage results
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: cobertura.xml
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
publish:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
max-parallel: 1
Expand Down Expand Up @@ -46,12 +46,11 @@ jobs:
registryName: async-graphql-tide
path: integrations/tide
steps:
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: get version
working-directory: ${{ matrix.package.path }}
run: echo PACKAGE_VERSION=$(sed -nE 's/^\s*version = "(.*?)"/\1/p' Cargo.toml) >> $GITHUB_ENV
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# [7.0.5] 2024-05-09

- Fix compiler and clippy warnings [#1501](https://github.com/async-graphql/async-graphql/pull/1501)
- Added support for deploying to wasm targets with axum - (without subscriptions) [#1517](https://github.com/async-graphql/async-graphql/pull/1517)
- Bump opentelemetry (0.21.0 -> 0.22.0) [#1513](https://github.com/async-graphql/async-graphql/pull/1513)
- Update lru dependency [#1504](https://github.com/async-graphql/async-graphql/pull/1504)
- Support TypeDirective for ArgumentDefinition, Enum, EnumValue, InputFieldDefinition, InputObject, Interface [#1509](https://github.com/async-graphql/async-graphql/pull/1509)
- Add `display` attribute for Enum macro [#1518](https://github.com/async-graphql/async-graphql/issues/1518)

# [7.0.3] 2024-03-16

- Sort schema fields & enums if required [#1475](https://github.com/async-graphql/async-graphql/pull/1475)
Expand Down
Loading

0 comments on commit 4aed934

Please sign in to comment.