mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2024-11-23 00:19:32 +01:00
461983b3bb
* Cache test * Baseline caching - initial work * Add comment explaining the change of CARGO_TARGET_DIR. * Update README.md Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> * Refactor getRustcVersion and getCargoSemverChecksVersion * Move helper functions outside RustdocCache class. * cachePath passed in constructor * workspaceRoot as constructor argument * Inline getManifestDir * Change target to semver-checks/target * Fix missing hash-files * Add workflow testing caching * New line * Add checking the updated cache * Missing semicolon * Bad job name in cache key * Upload cache if its hash changes * Test options cache-key and prefix-key * Need to use restore-keys * Is path a problem? * Absolute path * Move * Fix restore inputs * Verify * Revert debug * Rustc and semver-checks versions should not be fixed! * debug test * key not being a prefix * Missing outputs * Revert letter change in hash * Update CI README * TODO comments, shorter names * Better names * check the key * Missing ' * Remove space * Missing outputs * Remove hash check --------- Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> * Remove inconsistent newlines from workflows README --------- Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>
33 lines
609 B
YAML
33 lines
609 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
RUST_BACKTRACE: 1
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
test-build:
|
|
name: Test build
|
|
uses: ./.github/workflows/test-build.yml
|
|
|
|
test-action:
|
|
name: Smoke test the action
|
|
uses: ./.github/workflows/test-action.yml
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
with:
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
test-inputs:
|
|
name: Test action inputs
|
|
uses: ./.github/workflows/test-inputs.yml
|
|
|
|
test-cache:
|
|
name: Test rustdoc caching
|
|
uses: ./.github/workflows/test-cache.yml
|