-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit does a few things: - Restructures CI testing files to split out conventional commits checking into its own file. - Updates cargo-dist to the latest version. - Updates CI testing to be run on a matrix of MacOS, Ubuntu, and Windows. There's more to do in the future, including making sure our test matrix matches the host types used for building release artifacts for the CLI, but this is a good start. Signed-off-by: Andrew Lilley Brinker <alilleybrinker@gmail.com>
- Loading branch information
1 parent
f7ab3fd
commit 64895fa
Showing
10 changed files
with
179 additions
and
132 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Commit Checks | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
conventional-commits: | ||
name: Conventional Commits | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: webiny/action-conventional-commits@v1.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Test | ||
|
||
# Run on both PRs and pushes to the main branch. | ||
# It may seem redundant to run tests on main, since we disallow pushing directly | ||
# to main and all PRs get tested before merging. | ||
# | ||
# But due to how GitHub Actions isolates caches, we need to run the tests on | ||
# main so that caches are available to new PRs. The caches created when testing | ||
# PR code cannot be re-used outside of testing that PR. | ||
# | ||
# See the GitHub Actions documentation here: | ||
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache | ||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- "gitoid/**" | ||
- "omnibor/**" | ||
- "omnibor-cli/**" | ||
- "xtask/**" | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- "gitoid/**" | ||
- "omnibor/**" | ||
- "omnibor-cli/**" | ||
- "xtask/**" | ||
|
||
permissions: | ||
contents: read | ||
|
||
env: | ||
RUSTFLAGS: -Dwarnings | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
name: "${{ matrix.os }}" | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: swatinem/rust-cache@v2 | ||
with: | ||
key: ${{ matrix.os }} | ||
- name: Dependency Tree | ||
run: cargo tree | ||
- name: Check | ||
run: cargo check --verbose --workspace | ||
- name: Test | ||
run: cargo test --verbose --workspace | ||
- name: Lint | ||
run: cargo clippy --verbose --workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.