diff --git a/.github/workflows/check-and-lint.yaml b/.github/workflows/ci.yml similarity index 69% rename from .github/workflows/check-and-lint.yaml rename to .github/workflows/ci.yml index 58379767b..120ff7af2 100644 --- a/.github/workflows/check-and-lint.yaml +++ b/.github/workflows/ci.yml @@ -1,20 +1,16 @@ +name: Continuous Integration + on: pull_request: - branches: - - main paths-ignore: - "**/*.md" - - "docs/**/*" push: branches: - main paths-ignore: - "**/*.md" - - "docs/**/*" - -name: Check and Lint -# env: -# RUSTFLAGS: "-Dwarnings" + schedule: + - cron: "0 0 * * 0" jobs: check: @@ -66,3 +62,26 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} args: --all-targets --all-features -- -D warnings name: Clippy Output + + test: + name: Test + runs-on: ${{ matrix.job.os }} + strategy: + matrix: + rust: [stable] + job: + - os: macos-latest + - os: ubuntu-latest + - os: windows-latest + steps: + - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 + - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1 + with: + profile: minimal + toolchain: stable + override: true + - uses: Swatinem/rust-cache@e207df5d269b42b69c8bc5101da26f7d31feddb4 # v2 + - uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1 + with: + command: test + args: -r --all-targets --all-features --workspace diff --git a/.github/workflows/lint-markdown-toml.yaml b/.github/workflows/lint-docs.yaml similarity index 100% rename from .github/workflows/lint-markdown-toml.yaml rename to .github/workflows/lint-docs.yaml diff --git a/.github/workflows/breaking_changes.yml b/.github/workflows/release-ci.yml similarity index 51% rename from .github/workflows/breaking_changes.yml rename to .github/workflows/release-ci.yml index 13fe64b75..21e3bbb2b 100644 --- a/.github/workflows/breaking_changes.yml +++ b/.github/workflows/release-ci.yml @@ -1,12 +1,12 @@ +name: Check release + on: push: branches: - release/* -name: Breaking changes - jobs: - test: + breaking: name: Test runs-on: ${{ matrix.job.os }} strategy: @@ -28,3 +28,25 @@ jobs: with: command: test args: -r --all-targets --all-features --workspace -- --ignored + + semver-check: + name: Check SemVer + runs-on: ubuntu-latest + needs: breaking + strategy: + matrix: + rust: [stable] + job: + - os: ubuntu-latest + - os: windows-latest + - os: macos-latest + steps: + - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 + - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1 + with: + profile: minimal + toolchain: stable + override: true + - uses: Swatinem/rust-cache@e207df5d269b42b69c8bc5101da26f7d31feddb4 # v2 + - name: Check semver + uses: obi1kenobi/cargo-semver-checks-action@v2 diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml deleted file mode 100644 index 82587925f..000000000 --- a/.github/workflows/tests.yaml +++ /dev/null @@ -1,39 +0,0 @@ -on: - pull_request: - branches: - - main - paths-ignore: - - "**/*.md" - - "docs/**/*" - push: - branches: - - main - paths-ignore: - - "**/*.md" - - "docs/**/*" - -name: Tests - -jobs: - test: - name: Test - runs-on: ${{ matrix.job.os }} - strategy: - matrix: - rust: [stable] - job: - - os: macos-latest - - os: ubuntu-latest - - os: windows-latest - steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1 - with: - profile: minimal - toolchain: stable - override: true - - uses: Swatinem/rust-cache@e207df5d269b42b69c8bc5101da26f7d31feddb4 # v2 - - uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1 - with: - command: test - args: -r --all-targets --all-features --workspace