From 2d7b26f784f95ad2100f7bc3cf3bb68cf2b8151f Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Mon, 8 Apr 2024 14:48:55 +0800 Subject: [PATCH 01/11] ci: use nix for toolchain checks --- .github/workflows/build.yml | 23 +++++----- .gitignore | 1 + README.md | 2 +- flake.lock | 85 +++++++++++++++++++++++++++++++++++++ flake.nix | 53 +++++++++++++++++++++++ 5 files changed, 151 insertions(+), 13 deletions(-) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 24874bf7..eef43168 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -72,16 +72,15 @@ jobs: strategy: fail-fast: false matrix: - toolchain: [ nightly, beta, stable, 1.75.0 ] + toolchain: [ nightly, beta, stable, msrv ] steps: - - uses: actions/checkout@v2 - - name: Install rust ${{ matrix.toolchain }} - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.toolchain }} - override: true - - name: All features - uses: actions-rs/cargo@v1 - with: - command: check - args: --workspace --all-targets --all-features + - name: checkout + uses: actions/checkout@v4 + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@v5 + - name: Nix Cache + uses: DeterminateSystems/magic-nix-cache-action@v2 + - name: Rust Cache + uses: Swatinem/rust-cache@v2 + - name: Check Crates + run: nix develop ".#${{ matrix.toolchain }}" -c cargo check --workspace --all-targets --all-features diff --git a/.gitignore b/.gitignore index e8ab911e..c63e54ae 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ *.swp /dep_test +result diff --git a/README.md b/README.md index cd72d957..7e26ed0b 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ by default. ### MSRV -Minimum supported rust compiler version (MSRV): 1.66, rust 2021 edition. +Minimum supported rust compiler version (MSRV) is shown in `rust-version` of `Cargo.toml`. ## Contributing diff --git a/flake.lock b/flake.lock new file mode 100644 index 00000000..6894ac04 --- /dev/null +++ b/flake.lock @@ -0,0 +1,85 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1712439257, + "narHash": "sha256-aSpiNepFOMk9932HOax0XwNxbA38GOUVOiXfUVPOrck=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "ff0dbd94265ac470dda06a657d5fe49de93b4599", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs", + "rust-overlay": "rust-overlay" + } + }, + "rust-overlay": { + "inputs": { + "flake-utils": [ + "flake-utils" + ], + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1712542394, + "narHash": "sha256-UZebDBECRSrJqw4K+LxZ6qFdYnScu6q1XCwqtsu1cas=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "ece8bdb3c3b58def25f204b9a1261dee55d7c9c0", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 00000000..6f9deaad --- /dev/null +++ b/flake.nix @@ -0,0 +1,53 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + rust-overlay = { + url = "github:oxalica/rust-overlay"; + inputs.nixpkgs.follows = "nixpkgs"; + inputs.flake-utils.follows = "flake-utils"; + }; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, rust-overlay, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: + let + overlays = [ (import rust-overlay) ]; + pkgs = import nixpkgs { + inherit system overlays; + }; + + cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml); + in + with pkgs; + { + devShells = rec { + default = msrv; + + msrv = mkShell { + buildInputs = [ + rust-bin.stable."${cargoToml.workspace.package."rust-version"}".default + ]; + }; + + stable = mkShell { + buildInputs = [ + rust-bin.stable.latest.default + ]; + }; + + beta = mkShell { + buildInputs = [ + rust-bin.beta.latest.default + ]; + }; + + nightly = mkShell { + buildInputs = [ + rust-bin.nightly.latest.default + ]; + }; + }; + } + ); +} From 5f0f21a2dfd9a5bdf5dc05760c35821e10e22283 Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Tue, 23 Apr 2024 14:58:39 +0800 Subject: [PATCH 02/11] ci: upgrade checkout v2 -> v4 --- .github/workflows/build.yml | 6 +++--- .github/workflows/lint.yml | 6 +++--- .github/workflows/test.yml | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eef43168..459eee6d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: default: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install rust stable uses: actions-rs/toolchain@v1 with: @@ -33,7 +33,7 @@ jobs: - fs - serde steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install rust stable uses: actions-rs/toolchain@v1 with: @@ -56,7 +56,7 @@ jobs: matrix: os: [ ubuntu-20.04, ubuntu-22.04, macos-12, macos-13, windows-2019, windows-2022 ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install rust stable uses: actions-rs/toolchain@v1 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3f51bde0..db264554 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,7 +13,7 @@ jobs: fmt: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install rustc nightly uses: actions-rs/toolchain@v1 with: @@ -28,7 +28,7 @@ jobs: clippy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install rustc stable uses: actions-rs/toolchain@v1 with: @@ -43,7 +43,7 @@ jobs: doc: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install rustc nightly uses: actions-rs/toolchain@v1 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f40b2cd0..06bee43b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: testing: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install latest stable uses: actions-rs/toolchain@v1 with: @@ -27,7 +27,7 @@ jobs: wasm-testing: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install rust nightly uses: actions-rs/toolchain@v1 with: From 34cc8939d39edfcd48ddcd370e3a648f70806cc1 Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Tue, 23 Apr 2024 15:15:58 +0800 Subject: [PATCH 03/11] ci: update lint with nix --- .github/workflows/lint.yml | 45 ++++++++++---------------------------- 1 file changed, 12 insertions(+), 33 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index db264554..105d63c3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,44 +14,23 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Install rustc nightly - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - components: rustfmt - - uses: actions-rs/cargo@v1 - name: Formatting - with: - command: fmt - args: --all -- --check + - name: Install Nix + uses: cachix/install-nix-action@v26 + - name: Formatting + run: nix develop .#nightly -c cargo fmt --all -- --check clippy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Install rustc stable - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - components: clippy - - uses: actions-rs/cargo@v1 - name: Clippy - with: - command: clippy - args: --workspace --all-features --all-targets -- -D warnings + - name: Install Nix + uses: cachix/install-nix-action@v26 + - name: Clippy + run: nix develop .#stable -c cargo clippy --workspace --all-features --all-targets -- -D warnings doc: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Install rustc nightly - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - components: rust-docs - - uses: actions-rs/cargo@v1 - name: Doc - with: - command: doc - args: --workspace --all-features + - name: Install Nix + uses: cachix/install-nix-action@v26 + - name: Doc + run: nix develop .#nightly -c cargo doc --workspace --all-features From c4fa6361d2d8f80752dd108697500d10fe422cfa Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Tue, 23 Apr 2024 15:46:36 +0800 Subject: [PATCH 04/11] ci: update test with nix --- .github/workflows/test.yml | 25 ++++++------------------- flake.nix | 13 +++++++++++++ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 06bee43b..4d8e826b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,28 +14,15 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Install latest stable - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true + - name: Install Nix + uses: cachix/install-nix-action@v26 - name: Build & test - uses: actions-rs/cargo@v1 - with: - command: test - args: --workspace --all-features --no-fail-fast + run: nix develop .#stable -c cargo test --workspace --all-features --no-fail-fast --tests wasm-testing: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Install rust nightly - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - - uses: Swatinem/rust-cache@v2 - - uses: jetli/wasm-pack-action@v0.3.0 - - name: Add wasm32 target - run: rustup target add wasm32-unknown-unknown + - name: Install Nix + uses: cachix/install-nix-action@v26 - name: Test in headless Chrome - run: wasm-pack test --headless --chrome + run: nix develop .#wasm -c wasm-pack test --headless --chrome diff --git a/flake.nix b/flake.nix index 6f9deaad..db049de8 100644 --- a/flake.nix +++ b/flake.nix @@ -18,6 +18,11 @@ }; cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml); + + nightlyWithWasm = pkgs.rust-bin.nightly.latest.default.override { + extensions = [ ]; + targets = [ "wasm32-unknown-unknown" ]; + }; in with pkgs; { @@ -47,6 +52,14 @@ rust-bin.nightly.latest.default ]; }; + + wasm = mkShell { + buildInputs = [ + nightlyWithWasm + chromedriver + wasm-pack + ]; + }; }; } ); From 51161672bdb63908cf88f3938e1e996fe1ef7dfb Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Tue, 23 Apr 2024 15:51:00 +0800 Subject: [PATCH 05/11] ci: update codecov v3 -> v4 --- .github/workflows/codecov.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 20773195..0a62c40f 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -44,8 +44,11 @@ jobs: - name: Generate coverage run: grcov . --binary-path target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../**' --ignore '/*' -o coverage.lcov - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: files: ./coverage.lcov flags: rust - fail_ci_if_error: true + # TODO: set true when CODECOV_TOKEN is set + fail_ci_if_error: false + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From af382f8bef455f9ae1d2e061c57d2d4124bf0794 Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Tue, 23 Apr 2024 16:03:48 +0800 Subject: [PATCH 06/11] ci: update build with nix --- .github/workflows/build.yml | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 459eee6d..16e3fcb9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build +name: Build Check on: push: @@ -14,12 +14,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + # NOTE: Dont use nix here, everything should be based on the ubuntu-latest - name: Install rust stable uses: actions-rs/toolchain@v1 with: toolchain: stable override: true - - name: Default build + - name: Latest Ubuntu build check uses: actions-rs/cargo@v1 with: command: check @@ -34,21 +35,12 @@ jobs: - serde steps: - uses: actions/checkout@v4 - - name: Install rust stable - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - name: Feature ${{ matrix.feature }} - uses: actions-rs/cargo@v1 - with: - command: check - args: --no-default-features --features=${{ matrix.feature }} - - name: Defaults + ${{ matrix.feature }} - uses: actions-rs/cargo@v1 - with: - command: check - args: --features=${{ matrix.feature }} + - name: Install Nix + uses: cachix/install-nix-action@v26 + - name: Check feature ${{ matrix.feature }} only + run: nix develop .#stable -c cargo check --no-default-features --features=${{ matrix.feature }} + - name: Check feature ${{ matrix.feature }} with defaults + run: nix develop .#stable -c cargo check --features=${{ matrix.feature }} platforms: runs-on: ${{ matrix.os }} strategy: @@ -57,12 +49,13 @@ jobs: os: [ ubuntu-20.04, ubuntu-22.04, macos-12, macos-13, windows-2019, windows-2022 ] steps: - uses: actions/checkout@v4 + # NOTE: Dont use nix in platform checks everything should based on the host system - name: Install rust stable uses: actions-rs/toolchain@v1 with: toolchain: stable override: true - - name: Build with all features + - name: Build check with all features uses: actions-rs/cargo@v1 with: command: check From 5802f5e504df5a9085a8b0e4ce893d4626d81214 Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Tue, 23 Apr 2024 16:05:34 +0800 Subject: [PATCH 07/11] ci: add dependency bot --- .github/dependabot.yml | 14 ++++++++++++++ .github/workflows/codecov.yml | 31 ++++++------------------------- 2 files changed, 20 insertions(+), 25 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..33b79214 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + - package-ecosystem: "cargo" + directory: "/" + schedule: + interval: "weekly" + - package-ecosystem: "cargo" + directory: "/invoice" + schedule: + interval: "weekly" diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 0a62c40f..909c7609 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -14,35 +14,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Set up toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - components: rustfmt, llvm-tools-preview + - name: Install Nix + uses: cachix/install-nix-action@v26 - name: Build - uses: actions-rs/cargo@v1 - with: - command: build - args: --release - env: - CARGO_INCREMENTAL: "0" - RUSTFLAGS: "-Cinstrument-coverage" - RUSTDOCFLAGS: "-Cinstrument-coverage" + run: nix develop .#codecov -c cargo build --release - name: Test - uses: actions-rs/cargo@v1 - with: - command: test - args: --all-features --no-fail-fast - env: - CARGO_INCREMENTAL: "0" - RUSTFLAGS: "-Cinstrument-coverage" - RUSTDOCFLAGS: "-Cinstrument-coverage" + run: nix develop .#codecov -c cargo test --all-features --no-fail-fast --tests - name: Install grcov - run: if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo install grcov; fi + run: nix develop .#codecov -c cargo test --all-features --no-fail-fast - name: Generate coverage - run: grcov . --binary-path target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../**' --ignore '/*' -o coverage.lcov + run: nix develop .#codecov -c grcov . --binary-path target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../**' --ignore '/*' -o coverage.lcov - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 with: From 75262fa97146632ab88577f545188b02d43a5987 Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Tue, 23 Apr 2024 16:39:41 +0800 Subject: [PATCH 08/11] ci: update codecov with nix --- .github/workflows/codecov.yml | 2 +- .gitignore | 2 ++ flake.nix | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 909c7609..75ce405d 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -21,7 +21,7 @@ jobs: - name: Test run: nix develop .#codecov -c cargo test --all-features --no-fail-fast --tests - name: Install grcov - run: nix develop .#codecov -c cargo test --all-features --no-fail-fast + run: nix develop .#codecov -c cargo install grcov - name: Generate coverage run: nix develop .#codecov -c grcov . --binary-path target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../**' --ignore '/*' -o coverage.lcov - name: Upload coverage to Codecov diff --git a/.gitignore b/.gitignore index c63e54ae..2f2af66b 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ /dep_test result +default_*.profraw +coverage.lcov diff --git a/flake.nix b/flake.nix index db049de8..97a9cc3d 100644 --- a/flake.nix +++ b/flake.nix @@ -23,6 +23,11 @@ extensions = [ ]; targets = [ "wasm32-unknown-unknown" ]; }; + + stableWithLlvm = pkgs.rust-bin.nightly.latest.default.override { + extensions = [ "rustfmt" "llvm-tools-preview" ]; + targets = [ ]; + }; in with pkgs; { @@ -60,6 +65,15 @@ wasm-pack ]; }; + + codecov = mkShell { + buildInputs = [ + stableWithLlvm + ]; + CARGO_INCREMENTAL = "0"; + RUSTFLAGS = "-Cinstrument-coverage"; + RUSTDOCFLAGS = "-Cinstrument-coverage"; + }; }; } ); From 3a0a465483b37d4b301719a0b086f623126ab0bf Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Wed, 24 Apr 2024 00:04:01 +0800 Subject: [PATCH 09/11] ci: drop 3 party cache --- .github/workflows/build.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 16e3fcb9..6f2fc03f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -70,10 +70,6 @@ jobs: - name: checkout uses: actions/checkout@v4 - name: Install Nix - uses: DeterminateSystems/nix-installer-action@v5 - - name: Nix Cache - uses: DeterminateSystems/magic-nix-cache-action@v2 - - name: Rust Cache - uses: Swatinem/rust-cache@v2 + uses: cachix/install-nix-action@v26 - name: Check Crates run: nix develop ".#${{ matrix.toolchain }}" -c cargo check --workspace --all-targets --all-features From b3844e556bd87229621bb55736409d96ff4e163a Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Tue, 30 Apr 2024 09:18:16 +0800 Subject: [PATCH 10/11] ci: enable ci on develop and release branches --- .github/workflows/build.yml | 10 ++++++++-- .github/workflows/codecov.yml | 10 ++++++++-- .github/workflows/lint.yml | 10 ++++++++-- .github/workflows/test.yml | 10 ++++++++-- 4 files changed, 32 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6f2fc03f..e2a308d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,9 +2,15 @@ name: Build Check on: push: - branches: [ master ] + branches: + - master + - develop + - 'v[0-9]+.[0-9]+' pull_request: - branches: [ master ] + branches: + - master + - develop + - 'v[0-9]+.[0-9]+' env: CARGO_TERM_COLOR: always diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 75ce405d..4a23e91b 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -2,9 +2,15 @@ name: Codecov on: push: - branches: [ master ] + branches: + - master + - develop + - 'v[0-9]+.[0-9]+' pull_request: - branches: [ master ] + branches: + - master + - develop + - 'v[0-9]+.[0-9]+' env: CARGO_TERM_COLOR: always diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 105d63c3..7ca82979 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,9 +2,15 @@ name: Lints on: push: - branches: [ master ] + branches: + - master + - develop + - 'v[0-9]+.[0-9]+' pull_request: - branches: [ master ] + branches: + - master + - develop + - 'v[0-9]+.[0-9]+' env: CARGO_TERM_COLOR: always diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4d8e826b..1dae2740 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,9 +2,15 @@ name: Tests on: push: - branches: [ master ] + branches: + - master + - develop + - 'v[0-9]+.[0-9]+' pull_request: - branches: [ master ] + branches: + - master + - develop + - 'v[0-9]+.[0-9]+' env: CARGO_TERM_COLOR: always From 740bbd4f800aab21db7e6d2101be9185768672e0 Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Thu, 23 May 2024 16:46:33 +0800 Subject: [PATCH 11/11] ci: remove depbot --- .github/dependabot.yml | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 33b79214..00000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "weekly" - - package-ecosystem: "cargo" - directory: "/" - schedule: - interval: "weekly" - - package-ecosystem: "cargo" - directory: "/invoice" - schedule: - interval: "weekly"