From 17b2b1c5e70cd09b22119e925ab066dd446ce7fc Mon Sep 17 00:00:00 2001 From: Iban Eguia Moraza Date: Sun, 22 Oct 2023 20:20:31 +0200 Subject: [PATCH] Added semver checks --- .github/workflows/release.yml | 3 --- .github/workflows/rust.yml | 17 +++++++++++++++++ Cargo.lock | 28 ++++++++++++++-------------- Cargo.toml | 20 ++++++++++---------- 4 files changed, 41 insertions(+), 27 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 49f7b015e9..7056d9d1b6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,19 +13,16 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Install Rust toolchain uses: actions-rs/toolchain@v1 with: toolchain: stable profile: minimal override: true - - name: Install cargo-workspaces uses: actions-rs/install@v0.1 with: crate: cargo-workspaces - - name: Release env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index da50959278..88cf91ff8e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -69,6 +69,23 @@ jobs: - name: Test docs run: cargo test --doc --profile ci --features annex-b,intl,experimental + semver: + name: SemVer + runs-on: ubuntu-latest + timeout-minutes: 60 + steps: + - uses: actions/checkout@v4 + - uses: actions-rs/toolchain@v1.0.7 + with: + toolchain: stable + override: true + profile: minimal + - uses: Swatinem/rust-cache@v2 + with: + key: semver + - name: Check semver + uses: obi1kenobi/cargo-semver-checks-action@v2 + msrv: name: MSRV runs-on: ubuntu-latest diff --git a/Cargo.lock b/Cargo.lock index 3fc99f83f1..258b34e4ee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -317,7 +317,7 @@ dependencies = [ [[package]] name = "boa_ast" -version = "0.17.0" +version = "0.17.4" dependencies = [ "arbitrary", "bitflags 2.4.1", @@ -331,7 +331,7 @@ dependencies = [ [[package]] name = "boa_cli" -version = "0.17.0" +version = "0.17.4" dependencies = [ "boa_engine", "boa_gc", @@ -351,7 +351,7 @@ dependencies = [ [[package]] name = "boa_engine" -version = "0.17.0" +version = "0.17.4" dependencies = [ "bitflags 2.4.1", "boa_ast", @@ -412,7 +412,7 @@ dependencies = [ [[package]] name = "boa_examples" -version = "0.17.0" +version = "0.17.4" dependencies = [ "boa_ast", "boa_engine", @@ -427,7 +427,7 @@ dependencies = [ [[package]] name = "boa_gc" -version = "0.17.0" +version = "0.17.4" dependencies = [ "boa_macros", "boa_profiler", @@ -437,7 +437,7 @@ dependencies = [ [[package]] name = "boa_icu_provider" -version = "0.17.0" +version = "0.17.4" dependencies = [ "icu_datagen", "icu_provider", @@ -450,7 +450,7 @@ dependencies = [ [[package]] name = "boa_interner" -version = "0.17.0" +version = "0.17.4" dependencies = [ "arbitrary", "boa_gc", @@ -466,7 +466,7 @@ dependencies = [ [[package]] name = "boa_macros" -version = "0.17.0" +version = "0.17.4" dependencies = [ "proc-macro2", "quote", @@ -476,7 +476,7 @@ dependencies = [ [[package]] name = "boa_macros_tests" -version = "0.17.0" +version = "0.17.4" dependencies = [ "boa_engine", "boa_macros", @@ -485,7 +485,7 @@ dependencies = [ [[package]] name = "boa_parser" -version = "0.17.0" +version = "0.17.4" dependencies = [ "bitflags 2.4.1", "boa_ast", @@ -502,7 +502,7 @@ dependencies = [ [[package]] name = "boa_profiler" -version = "0.17.0" +version = "0.17.4" dependencies = [ "measureme", "once_cell", @@ -511,7 +511,7 @@ dependencies = [ [[package]] name = "boa_runtime" -version = "0.17.0" +version = "0.17.4" dependencies = [ "boa_engine", "boa_gc", @@ -522,7 +522,7 @@ dependencies = [ [[package]] name = "boa_tester" -version = "0.17.0" +version = "0.17.4" dependencies = [ "bitflags 2.4.1", "boa_engine", @@ -545,7 +545,7 @@ dependencies = [ [[package]] name = "boa_wasm" -version = "0.17.0" +version = "0.17.4" dependencies = [ "boa_engine", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 23eb53bf56..9745f044da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ members = [ [workspace.package] edition = "2021" -version = "0.17.0" +version = "0.17.4" rust-version = "1.71.0" authors = ["boa-dev"] repository = "https://github.com/boa-dev/boa" @@ -29,15 +29,15 @@ description = "Boa is a Javascript lexer, parser and compiler written in Rust. C [workspace.dependencies] # Repo Crates -boa_ast = { version = "~0.17.0", path = "boa_ast" } -boa_engine = { version = "~0.17.0", path = "boa_engine" } -boa_gc = { version = "~0.17.0", path = "boa_gc" } -boa_icu_provider = { version = "~0.17.0", path = "boa_icu_provider" } -boa_interner = { version = "~0.17.0", path = "boa_interner" } -boa_macros = { version = "~0.17.0", path = "boa_macros" } -boa_parser = { version = "~0.17.0", path = "boa_parser" } -boa_profiler = { version = "~0.17.0", path = "boa_profiler" } -boa_runtime = { version = "~0.17.0", path = "boa_runtime" } +boa_ast = { version = "0.17.4", path = "boa_ast" } +boa_engine = { version = "0.17.4", path = "boa_engine" } +boa_gc = { version = "0.17.4", path = "boa_gc" } +boa_icu_provider = { version = "0.17.4", path = "boa_icu_provider" } +boa_interner = { version = "0.17.4", path = "boa_interner" } +boa_macros = { version = "0.17.4", path = "boa_macros" } +boa_parser = { version = "0.17.4", path = "boa_parser" } +boa_profiler = { version = "0.17.4", path = "boa_profiler" } +boa_runtime = { version = "0.17.4", path = "boa_runtime" } # Shared deps arbitrary = "1"