-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from danieleades/ci
add CI workflows
- Loading branch information
Showing
5 changed files
with
248 additions
and
5 deletions.
There are no files selected for viewing
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,45 @@ | ||
|
||
version: 2 | ||
updates: | ||
# bump major and minor updates as soon as available | ||
- package-ecosystem: cargo | ||
target-branch: main # see https://github.com/dependabot/dependabot-core/issues/1778#issuecomment-1988140219 | ||
directory: / | ||
schedule: | ||
interval: daily | ||
commit-message: | ||
prefix: chore | ||
include: scope | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: | ||
- "version-update:semver-patch" | ||
|
||
# bundle patch updates together on a monthly basis | ||
- package-ecosystem: cargo | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
commit-message: | ||
prefix: chore | ||
include: scope | ||
groups: | ||
patch-updates: | ||
update-types: | ||
- patch | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: | ||
- "version-update:semver-minor" | ||
- "version-update:semver-major" | ||
|
||
# bump actions as soon as available | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily | ||
commit-message: | ||
prefix: chore | ||
include: scope | ||
ignore: | ||
- dependency-name: dtolnay/rust-toolchain |
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,55 @@ | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
|
||
name: Continuous integration | ||
|
||
jobs: | ||
test: | ||
name: test | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
features: ["--features glam", ""] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
- run: cargo test ${{ matrix.features }} | ||
|
||
fmt: | ||
name: format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
components: rustfmt | ||
- run: cargo fmt --all --check | ||
|
||
clippy: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
components: clippy | ||
- uses: actions-rs-plus/clippy-check@v2 | ||
with: | ||
args: --all --all-features --all-targets | ||
|
||
msrv: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Get MSRV from Cargo.toml | ||
run: | | ||
MSRV=$(grep 'rust-version' Cargo.toml | sed 's/.*= *"\(.*\)".*/\1/') | ||
echo "MSRV=$MSRV" >> $GITHUB_ENV | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ env.MSRV }} | ||
- uses: taiki-e/install-action@cargo-no-dev-deps | ||
- run: cargo no-dev-deps check --all --all-features |
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
/target | ||
/.vscode | ||
Cargo.lock | ||
*.svg | ||
*.data* |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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