Skip to content

Add: Network error screen #8

Add: Network error screen

Add: Network error screen #8

Workflow file for this run

# A custom github action for all of the core jobs i want done across all of my repos
# Made by @Xanthus58
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support.
name: Rust-Core
on:
push:
branches: [ "*" ]
jobs:
# Ensure the application can be built and run successfully
build:
name: Run Cargo build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
# Ensures theres no security vulnerabilities in the programs dependencies
security_audit:
name: Run Security-audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Runs rust clippy for any and all suggestions
rust-clippy-analyze:
name: Run rust-clippy analyzing
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true
- name: Install required cargo
run: cargo install clippy-sarif sarif-fmt
- name: Run rust-clippy
run:
cargo clippy
--all-features
--message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
continue-on-error: true
- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: rust-clippy-results.sarif
wait-for-processing: true
# Runs cargo fmt and pushes any changes to the github repo
update:
name: Run Cargo FMT
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: fmt
args:
# Runs cargo update to update the cargo.lock file
update:

Check failure on line 86 in .github/workflows/rust-core.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/rust-core.yaml

Invalid workflow file

You have an error in your yaml syntax on line 86
name: Run Cargo update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: update
args: