Skip to content

Commit

Permalink
Cleanup CI config files (jonasbb#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbb authored Sep 12, 2024
2 parents aede9d5 + fbc4532 commit 2c68754
Show file tree
Hide file tree
Showing 22 changed files with 42 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ on:
paths:
- 'Cargo.toml'
- '**/Cargo.toml'
# Bors related branches
- 'Cargo.lock'
push:
branches:
- master
- staging
- trying
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions: read-all

jobs:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ on:
push:
branches:
- master
- staging
- trying
# Test once per week: Saturday at 00:00
schedule:
- cron: "0 0 * * 6"
workflow_dispatch:
permissions: read-all

jobs:
Expand Down Expand Up @@ -61,7 +60,7 @@ jobs:
# It is good to test more than the MSRV and stable since sometimes
# breakage occurs in intermediate versions.
# IMPORTANT: Synchronize the MSRV with the Cargo.toml values.
rust: ["1.67", "1.70", "1.75", "stable", "beta", "nightly"]
rust: ["1.67", "1.70", "1.75", "1.80", "stable", "beta", "nightly"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions serde_with/tests/base64.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Test Cases
#![allow(
// This allows the tests to be written more uniform and not have to special case the last clone().
clippy::redundant_clone,
Expand Down
2 changes: 2 additions & 0 deletions serde_with/tests/chrono_0_4.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Test Cases
extern crate alloc;

mod utils;
Expand Down
2 changes: 2 additions & 0 deletions serde_with/tests/derives/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Test Cases
mod deserialize_fromstr;
mod serialize_display;
#[path = "../utils.rs"]
Expand Down
2 changes: 2 additions & 0 deletions serde_with/tests/hashbrown_0_14.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Test Cases
mod utils;

use crate::utils::{check_deserialization, check_error_deserialization, is_equal};
Expand Down
2 changes: 2 additions & 0 deletions serde_with/tests/hex.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Test Cases
mod utils;

use crate::utils::{check_deserialization, check_error_deserialization, is_equal};
Expand Down
2 changes: 2 additions & 0 deletions serde_with/tests/indexmap_1.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Test Cases
mod utils;

use crate::utils::{check_deserialization, check_error_deserialization, is_equal};
Expand Down
2 changes: 2 additions & 0 deletions serde_with/tests/indexmap_2.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Test Cases
mod utils;

use crate::utils::{check_deserialization, check_error_deserialization, is_equal};
Expand Down
2 changes: 2 additions & 0 deletions serde_with/tests/json.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Test Cases
mod utils;

use crate::utils::is_equal;
Expand Down
2 changes: 2 additions & 0 deletions serde_with/tests/rust.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Test Cases
extern crate alloc;

mod utils;
Expand Down
2 changes: 2 additions & 0 deletions serde_with/tests/schemars_0_8.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Test Cases
use crate::utils::{check_matches_schema, check_valid_json_schema};
use expect_test::expect_file;
use schemars::JsonSchema;
Expand Down
2 changes: 2 additions & 0 deletions serde_with/tests/serde_as/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Test Cases
extern crate alloc;

mod collections;
Expand Down
2 changes: 2 additions & 0 deletions serde_with/tests/time_0_3.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Test Cases
mod utils;

use crate::utils::{check_deserialization, check_error_deserialization, is_equal};
Expand Down
2 changes: 1 addition & 1 deletion serde_with/tests/utils.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![allow(dead_code)]
#![allow(dead_code, missing_docs)]

use core::fmt::Debug;
use expect_test::Expect;
Expand Down
2 changes: 2 additions & 0 deletions serde_with/tests/version_numbers.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Test Cases
use version_sync::{assert_contains_regex, assert_html_root_url_updated};

#[test]
Expand Down
2 changes: 2 additions & 0 deletions serde_with/tests/with_prefix.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Test Cases
extern crate alloc;

mod utils;
Expand Down
2 changes: 2 additions & 0 deletions serde_with_macros/tests/apply.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Test Cases
#![allow(dead_code)]

use expect_test::expect;
Expand Down
2 changes: 2 additions & 0 deletions serde_with_macros/tests/compiler-messages.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Test Cases
#[cfg_attr(tarpaulin, ignore)]
// The error messages are different on beta and nightly, thus breaking the test.
#[rustversion::attr(beta, ignore)]
Expand Down
2 changes: 2 additions & 0 deletions serde_with_macros/tests/serde_as_issue_267.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(missing_docs)]

use serde::Serialize;
use serde_with_macros::serde_as;

Expand Down
2 changes: 2 additions & 0 deletions serde_with_macros/tests/skip_serializing_null.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Test Cases
use pretty_assertions::assert_eq;
use serde::{Deserialize, Serialize};
use serde_json::json;
Expand Down
2 changes: 2 additions & 0 deletions serde_with_macros/tests/version_numbers.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Test Cases
#[test]
fn test_html_root_url() {
version_sync::assert_html_root_url_updated!("src/lib.rs");
Expand Down

0 comments on commit 2c68754

Please sign in to comment.