Skip to content

new github action

new github action #2

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
jobs:
Fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: fmt check
run: cargo +nightly fmt --all --check
Release Build:

Check failure on line 22 in .github/workflows/rust.yml

GitHub Actions / Rust

Invalid workflow file

The workflow is not valid. .github/workflows/rust.yml (Line: 22, Col: 3): The identifier 'Release Build' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters. .github/workflows/rust.yml (Line: 31, Col: 3): The identifier 'Pallet Tests' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
runs-on: ubuntu-latest
steps:
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- uses: actions/checkout@v3
- name: Build
run: cargo build --release --verbose
Pallet Tests:
runs-on: ubuntu-latest
steps:
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- uses: actions/checkout@v3
- name: Run Pallet Tests
run: cargo test --features runtime-benchmarks --verbose
Integration Tests:
runs-on: ubuntu-latest
steps:
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- uses: actions/checkout@v3
- name: STD Build
run: cargo build --release --features std,instant-node
- name: Run Integration Tests
run: cargo test -p integration-tests