Skip to content

Commit

Permalink
Add test and format CI. (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
adlerjohn authored and xgreenx committed Dec 20, 2022
1 parent 7374825 commit c2bfef7
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions fuel-asm/.github/workflows/cargo_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Compile and Test

on:
push:
branches:
- master
tags:
- v*
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true

- name: Install rustfmt
run: rustup component add rustfmt

- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all --verbose -- --check

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose

- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose

0 comments on commit c2bfef7

Please sign in to comment.