Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Add cloudbuild.yaml #36

Add cloudbuild.yaml

Add cloudbuild.yaml #36

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request_target:
branches:
- main
jobs:
common:
name: common
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{github.event.pull_request.head.repo.full_name}}
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
name: format check
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
name: clippy check
with:
command: clippy
args: -- -D warnings