Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrueger authored Aug 2, 2023
1 parent 4ac2224 commit 2424bf3
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Rust

on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

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

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

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

0 comments on commit 2424bf3

Please sign in to comment.