summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorSteven Fackler <sfackler@gmail.com>2020-05-24 10:37:27 -0700
committerSteven Fackler <sfackler@gmail.com>2020-05-24 10:39:01 -0700
commit406031991ff3d25e33ca7c74ac1c3790b303e67a (patch)
tree44795c5740a91b97106c4472675a94d215390cc9 /.github/workflows/ci.yml
parent72048765c7dc70d8a5e9e7b9b1a475b7c47a9261 (diff)
downloadrust-openssl-406031991ff3d25e33ca7c74ac1c3790b303e67a.zip
Run rustfmt on github actions
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..14c0f9bd
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,25 @@
+name: CI
+
+on:
+ pull_request:
+ branches:
+ - master
+ push:
+ branches:
+ - master
+ - github-actions
+
+env:
+ RUSTFLAGS: -Dwarnings
+ RUST_BACKTRACE: 1
+
+jobs:
+ rustfmt:
+ name: rustfmt
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Install Rust
+ run: rustup update stable && rustup default stable
+ - name: Check formatting
+ run: cargo fmt --all -- --check