Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui test rework and other maintenance stuff #17

Merged
merged 30 commits into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6a1e943
examples: mutex reduce iteration count
y86-dev Apr 11, 2024
c525a79
use absolute paths to import in docs
y86-dev Apr 11, 2024
07ab41b
use `cargo-rdme` for generating the README
y86-dev Apr 11, 2024
8881418
add workflow to check if readme is up-to-date
y86-dev Apr 10, 2024
7c00083
use `trybuild` instead of `compiletest-rs`
y86-dev Apr 11, 2024
fed58c9
tests: ui: remove template and extern crate
y86-dev Apr 11, 2024
5fe14b4
tests: ui: create subdirectories for the different macros
y86-dev Apr 11, 2024
cafb0ea
tests: ui: compile-fail: pin_data: add missing_pin
y86-dev Apr 11, 2024
3d95752
tests: ui: compile-fail: zeroable: add with_comma
y86-dev Apr 11, 2024
c0c1d8d
tests: ui: compile-fail: init: add missing_comma
y86-dev Apr 11, 2024
f89fcef
tests: ui: compile-fail: init: add missing_comma_with_zeroable
y86-dev Apr 11, 2024
845506e
tests: ui: compile-fail: init: add field_value_wrong_type
y86-dev Apr 11, 2024
9464c20
tests: ui: compile-fail: pinned_drop: add no_fn
y86-dev Apr 11, 2024
3e56be8
tests: ui: compile-fail: pinned_drop: add unexpected_additional_item
y86-dev Apr 11, 2024
703995f
tests: ui: compile-fail: pinned_drop: add unexpected_item
y86-dev Apr 11, 2024
139127b
tests: ui: compile-fail: pinned_drop: add wrong_receiver
y86-dev Apr 11, 2024
3ab852f
tests: ui: compile-fail: pinned_drop: add unexpected_generics
y86-dev Apr 11, 2024
e57cef7
tests: ui: compile-fail: init: add wrong_generics
y86-dev Apr 11, 2024
c1ed9a5
tests: ui: compile-fail: init: add wrong_generics2
y86-dev Apr 12, 2024
20f67a8
tests: ui: compile-fail: init: add missing_error_type
y86-dev Apr 12, 2024
9a2115c
tests: ui: compile-fail: init: add invalid_init
y86-dev Apr 12, 2024
f893ad8
tests: ui: compile-fail: pin_data: add unexpected_args
y86-dev Apr 12, 2024
b370bb1
tests: ui: compile-fail: pin_data: add unexpected_item
y86-dev Apr 12, 2024
7991820
tests: ui: compile-fail: pin_data: add twice
y86-dev Apr 12, 2024
7842a11
tests: add const-generic-default
y86-dev Apr 11, 2024
9aab696
tests: add zeroing
y86-dev Apr 11, 2024
b989ced
add `macrotest`
y86-dev Apr 11, 2024
46353b4
tests: ui: expand: add pin-data and simple-init
y86-dev Apr 11, 2024
b371da0
tests: ui: expand: add pinned_drop
y86-dev Apr 12, 2024
f28bad0
tests: add many_generics
y86-dev Apr 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,21 @@ jobs:
# intentionally no target specifier; see https://github.com/jonhoo/rust-ci-conf/pull/4
- name: cargo hack
run: cargo hack --feature-powerset check
readme:
runs-on: ubuntu-latest
name: readme
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install nightly
uses: dtolnay/rust-toolchain@nightly
with:
components: rust-src
- name: cargo install cargo-rdme
run: cargo install cargo-rdme
- name: cargo rdme --check
run: cargo rdme --check
# disable msrv, since we are nightly only
# msrv:
# runs-on: ubuntu-latest
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
uses: dtolnay/rust-toolchain@nightly
with:
components: rust-src
- name: cargo install cargo-expand
run: cargo install cargo-expand
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
Expand All @@ -29,24 +31,19 @@ jobs:
update:
runs-on: ubuntu-latest
name: ubuntu / nightly / updated
# There's no point running this if no Cargo.lock was checked in in the
# first place, since we'd just redo what happened in the regular test job.
# Unfortunately, hashFiles only works in if on steps, so we reepeat it.
# if: hashFiles('Cargo.lock') != ''
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install nightly
if: hashFiles('Cargo.lock') != ''
uses: dtolnay/rust-toolchain@nightly
with:
components: rust-src
- name: cargo install cargo-expand
run: cargo install cargo-expand
- name: cargo update
if: hashFiles('Cargo.lock') != ''
run: cargo update
- name: cargo test
if: hashFiles('Cargo.lock') != ''
run: cargo test --locked --all-features --all-targets
env:
RUSTFLAGS: -D deprecated
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
components: rust-src
- name: cargo install cargo-expand
run: cargo install cargo-expand
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
Expand All @@ -45,6 +47,8 @@ jobs:
uses: dtolnay/rust-toolchain@nightly
with:
components: rust-src
- name: cargo install cargo-expand
run: cargo install cargo-expand
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
Expand Down
Loading
Loading