Skip to content

Commit

Permalink
ci: Switch to GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Oct 12, 2023
1 parent 080503a commit 22c7dba
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches:
- main
pull_request:
merge_group:

jobs:
rustfmt:
runs-on: ubuntu-latest
name: cargo fmt
steps:
- uses: actions/checkout@v4

- name: install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt

- name: cargo fmt
run: cargo fmt --all --check

test-stable:
runs-on: ubuntu-latest
name: cargo clippy + test
steps:
- uses: actions/checkout@v4

- name: install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy

- name: cargo clippy
run: cargo clippy --all-targets -- -D warnings

- name: cargo test
run: cargo test
1 change: 0 additions & 1 deletion .travis.yml

This file was deleted.

0 comments on commit 22c7dba

Please sign in to comment.