updated endpoints, added job to load github metadata, expanded streak… #58
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
name: race-of-sloth-ci | |
# The ref given is fully-formed, meaning that for branches the format is refs/heads/<branch_name>, for pull requests it is refs/pull/<pr_number>/merge, and for tags it is refs/tags/<tag_name> | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [main] | |
jobs: | |
ci: | |
if: github.event_name == 'pull_request' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
persist-credentials: false | |
- run: git config --global --add safe.directory "*" | |
- uses: technote-space/[email protected] | |
id: git-diff | |
with: | |
PATTERNS: | | |
**/**.rs | |
Cargo.lock | |
- uses: dsherret/rust-toolchain-file@v1 | |
if: steps.git-diff.outputs.diff | |
- name: fmt | |
run: cargo fmt --all -- --check | |
if: steps.git-diff.outputs.diff | |
- name: install cargo-near | |
if: steps.git-diff.outputs.diff | |
run: | |
sudo apt update -y && | |
sudo apt install -y pkg-config libusb-1.0-0-dev libftdi1-dev libudev-dev && | |
cargo install cargo-near | |
- name: clippy | |
if: steps.git-diff.outputs.diff | |
run: | | |
cargo clippy --release -- -D warnings -A clippy::too_many_arguments | |
- name: build bot | |
if: steps.git-diff.outputs.diff | |
run: cargo build --release | |
- name: build contract | |
if: steps.git-diff.outputs.diff | |
run: cd contract && cargo near build |