-
Notifications
You must be signed in to change notification settings - Fork 14
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 #33 from HewlettPackard/jm-actions
Migrate from circleci to github actions
- Loading branch information
Showing
5 changed files
with
59 additions
and
56 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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: cargo | ||
open-pull-requests-limit: 25 | ||
directory: / | ||
registries: [] | ||
schedule: | ||
interval: daily | ||
- package-ecosystem: cargo | ||
open-pull-requests-limit: 25 | ||
directory: / | ||
registries: [] | ||
schedule: | ||
interval: daily | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily |
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,26 @@ | ||
# (c) Copyright 2024 Hewlett Packard Enterprise Development LP | ||
|
||
name: Release | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
upload_artifacts: | ||
runs-on: ubuntu-latest | ||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
- name: Update Tag | ||
shell: bash | ||
run: | | ||
version=$(echo "$GITHUB_REF" | sed 's/refs\/tags\/v//') | ||
sed -i "s/version = \"0.1.0\"/version = \"$version\"/" Cargo.toml | ||
- name: Cargo Login | ||
run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
- name: Publish | ||
run: cargo publish --allow-dirty --locked |
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,23 @@ | ||
# (c) Copyright 2024 Hewlett Packard Enterprise Development LP | ||
|
||
name: Rust Checks | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: Rust Checks | ||
runs-on: ubuntu-latest | ||
env: | ||
CARGO_TERM_COLOR: always | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
#TODO fix formatting in a separate pr after moving to actions | ||
# - name: Rust Format | ||
# run: cargo fmt --check | ||
- name: Clippy | ||
run: cargo clippy | ||
- name: Test | ||
run: cargo test --verbose |
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