Skip to content

Commit

Permalink
Added automated code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Le0X8 committed Jul 3, 2024
1 parent 56f8e3d commit a090e25
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 15 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/rustfmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Automated Code Formatting

on:
push:
branches:
- "*"
- "*/*"
- "**"

jobs:
format:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: mbrobbel/rustfmt-check@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
mode: pull
27 changes: 13 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
name: Run integration tests
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
CARGO_TERM_COLOR: always
jobs:
test:
test:
runs-on: ubuntu-latest

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"editor.tabSize": 4
"editor.tabSize": 4
}

0 comments on commit a090e25

Please sign in to comment.