Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede authored Sep 16, 2023
2 parents db1481b + b737452 commit 67d5ce4
Show file tree
Hide file tree
Showing 35 changed files with 307 additions and 302 deletions.
5 changes: 0 additions & 5 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: cargo
directory: /
schedule:
interval: weekly
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
43 changes: 19 additions & 24 deletions .github/workflows/ci-post-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ jobs:
matrix:
target:
- { name: Linux, os: ubuntu-latest, triple: x86_64-unknown-linux-gnu }
version:
- nightly

name: ${{ matrix.target.name }} / ${{ matrix.version }}
name: ${{ matrix.target.name }} / nightly
runs-on: ${{ matrix.target.os }}

services:
Expand All @@ -30,15 +28,16 @@ jobs:
options: --entrypoint redis-server

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust (${{ matrix.version }})
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install Rust (nightly)
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
toolchain: ${{ matrix.version }}
toolchain: nightly

- uses: taiki-e/cache-cargo-install-action@v1
with: { tool: cargo-hack }
- uses: taiki-e/install-action@v2.18.11
with:
tool: cargo-hack

- name: check minimal
run: cargo ci-min
Expand All @@ -61,30 +60,26 @@ jobs:
build_and_test_other_nightly:
strategy:
fail-fast: false
# prettier-ignore
matrix:
target:
- { name: macOS, os: macos-latest, triple: x86_64-apple-darwin }
- {
name: Windows,
os: windows-latest,
triple: x86_64-pc-windows-msvc,
}
version:
- nightly

name: ${{ matrix.target.name }} / ${{ matrix.version }}
- { name: Windows, os: windows-latest, triple: x86_64-pc-windows-msvc }

name: ${{ matrix.target.name }} / nightly
runs-on: ${{ matrix.target.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust (${{ matrix.version }})
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install Rust (nightly)
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
toolchain: ${{ matrix.version }}
toolchain: nightly

- uses: taiki-e/cache-cargo-install-action@v1
with: { tool: cargo-hack }
- uses: taiki-e/install-action@v2.18.11
with:
tool: cargo-hack

- name: check minimal
run: cargo ci-min
Expand Down
76 changes: 40 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: CI

on:
pull_request: {}
push: { branches: [master] }
pull_request:
types: [opened, synchronize, reopened]
merge_group:
types: [checks_requested]
push:
branches: [master]

permissions: { contents: read }

Expand All @@ -18,10 +22,10 @@ jobs:
target:
- { name: Linux, os: ubuntu-latest, triple: x86_64-unknown-linux-gnu }
version:
- '1.60' # MSRV
- stable
- { name: msrv, version: 1.68.0 }
- { name: stable, version: stable }

name: ${{ matrix.target.name }} / ${{ matrix.version }}
name: ${{ matrix.target.name }} / ${{ matrix.version.name }}
runs-on: ${{ matrix.target.os }}

services:
Expand All @@ -37,21 +41,22 @@ jobs:
--entrypoint redis-server
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust (${{ matrix.version }})
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install Rust (${{ matrix.version.name }})
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
toolchain: ${{ matrix.version }}
toolchain: ${{ matrix.version.version }}

- name: Install cargo-hack
uses: taiki-e/cache-cargo-install-action@v1
with: { tool: cargo-hack }
uses: taiki-e/install-action@v2.18.11
with:
tool: cargo-hack

- name: workaround MSRV issues
if: matrix.version != 'stable'
run: |
cargo update -p=time:0.3.20 --precise=0.3.16
# - name: workaround MSRV issues
# if: matrix.version.name == 'msrv'
# run: |
# cargo update -p=time:0.3.20 --precise=0.3.16

- name: check minimal
run: cargo ci-min
Expand All @@ -75,36 +80,34 @@ jobs:
strategy:
fail-fast: false
matrix:
# prettier-ignore
target:
- { name: macOS, os: macos-latest, triple: x86_64-apple-darwin }
- {
name: Windows,
os: windows-latest,
triple: x86_64-pc-windows-msvc,
}
- { name: Windows, os: windows-latest, triple: x86_64-pc-windows-msvc }
version:
- '1.60' # MSRV
- stable
- { name: msrv, version: 1.68.0 }
- { name: stable, version: stable }

name: ${{ matrix.target.name }} / ${{ matrix.version }}
name: ${{ matrix.target.name }} / ${{ matrix.version.name }}
runs-on: ${{ matrix.target.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust (${{ matrix.version }})
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install Rust (${{ matrix.version.name }})
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
toolchain: ${{ matrix.version }}
toolchain: ${{ matrix.version.version }}

- name: Install cargo-hack
uses: taiki-e/cache-cargo-install-action@v1
with: { tool: cargo-hack }
uses: taiki-e/install-action@v2.18.11
with:
tool: cargo-hack

- name: workaround MSRV issues
if: matrix.version != 'stable'
run: |
cargo update -p=time:0.3.20 --precise=0.3.16
# - name: workaround MSRV issues
# if: matrix.version.name == 'msrv'
# run: |
# cargo update -p=time:0.3.20 --precise=0.3.16

- name: check minimal
run: cargo ci-min
Expand All @@ -128,11 +131,12 @@ jobs:
name: doc tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust (nightly)
uses: actions-rust-lang/setup-rust-toolchain@v1
with: { toolchain: nightly }
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
toolchain: nightly

- name: doc tests
timeout-minutes: 40
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Coverage

on:
push: { branches: [master] }
push:
branches: [master]

permissions: { contents: read }

Expand All @@ -21,11 +22,12 @@ jobs:
options: --entrypoint redis-server

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust (nightly)
uses: actions-rust-lang/setup-rust-toolchain@v1
with: { toolchain: nightly }
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
toolchain: nightly

- name: Generate coverage file
run: |
Expand All @@ -34,4 +36,5 @@ jobs:
- name: Upload to Codecov
uses: codecov/codecov-action@v3
with: { file: cobertura.xml }
with:
file: cobertura.xml
27 changes: 15 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust (nightly)
uses: actions-rust-lang/setup-rust-toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
toolchain: nightly
components: rustfmt
Expand All @@ -26,33 +26,36 @@ jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with: { components: clippy }
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
components: clippy

- name: Check with Clippy
run: cargo clippy --workspace --tests --all-features
run: cargo clippy --workspace --tests --all-features -- -A unknown_lints

public-api-diff:
runs-on: ubuntu-latest
steps:
- name: checkout ${{ github.base_ref }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}

- name: checkout ${{ github.head_ref }}
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Rust (nightly)
uses: actions-rust-lang/setup-rust-toolchain@v1
with: { toolchain: nightly }
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
toolchain: nightly

- name: Install cargo-public-api
uses: taiki-e/cache-cargo-install-action@v1
with: { tool: cargo-public-api }
uses: taiki-e/cache-cargo-install-action@v1.2.1
with:
tool: cargo-public-api

- name: generate API diff
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/upload-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust (nightly)
uses: actions-rust-lang/setup-rust-toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with: { toolchain: nightly }

- name: Build Docs
Expand All @@ -27,7 +27,7 @@ jobs:
run: echo '<meta http-equiv="refresh" content="0;url=actix_cors/index.html">' > target/doc/index.html

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@3.7.1
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ members = [
"actix-web-httpauth",
]

# TODO(MSRV 1.64)
# [workspace.package]
# edition = "2018"
# rust-version = "1.60"
[workspace.package]
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.68"

[patch.crates-io]
actix-cors = { path = "./actix-cors" }
Expand Down
Loading

0 comments on commit 67d5ce4

Please sign in to comment.