Refactor + Feature #14
Workflow file for this run
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
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
get-next-version: | |
uses: semantic-release-action/next-release-version/.github/workflows/next-release-version.yml@v4 | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
needs: | |
- get-next-version | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install semantic-release-cargo | |
if: needs.get-next-version.outputs.new-release-published == 'true' | |
uses: EricCrosson/install-github-release-binary@v2 | |
with: | |
targets: semantic-release-cargo/semantic-release-cargo@v2 | |
- name: Prepare semantic-release for Rust | |
if: needs.get-next-version.outputs.new-release-published == 'true' | |
run: semantic-release-cargo prepare ${{ needs.get-next-version.outputs.new-release-version }} | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Test Worldstate | |
run: cargo test -F worldstate | |
- name: Test Worldstate with all features | |
run: cargo test -F worldstate_full | |
- name: Cargo build | |
run: cargo build --release | |
- name: Semantic Release | |
id: release | |
uses: cycjimmy/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
with: | |
semantic_version: 18 | |
extra_plugins: | | |
@semantic-release/git | |
@semantic-release/changelog | |
@semantic-release-cargo/semantic-release-cargo |