ci: Rename GitHub Actions rust workflow metadata file
authorDan Nicholson <dbn@endlessos.org>
Fri, 18 Jun 2021 17:00:16 +0000 (11:00 -0600)
committerDan Nicholson <dbn@endlessos.org>
Fri, 18 Jun 2021 21:24:47 +0000 (15:24 -0600)
This workflow is specific to using rust and not just the general test
suite.

.github/workflows/rust.yml [new file with mode: 0644]
.github/workflows/tests.yml [deleted file]

diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
new file mode 100644 (file)
index 0000000..70233b8
--- /dev/null
@@ -0,0 +1,27 @@
+---
+name: Rust
+on:
+  push:
+    branches: [main]
+  pull_request:
+    branches: [main]
+
+env:
+  CARGO_TERM_COLOR: always
+  ACTIONS_LINTS_TOOLCHAIN: 1.50.0
+
+jobs:
+  linting:
+    name: "Lints, pinned toolchain"
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v2
+      - name: Install toolchain
+        uses: actions-rs/toolchain@v1
+        with:
+          toolchain: ${{ env['ACTIONS_LINTS_TOOLCHAIN']  }}
+          default: true
+          components: rustfmt, clippy
+      - name: cargo fmt (check)
+        run: cargo fmt -- --check -l
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
deleted file mode 100644 (file)
index 70233b8..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
----
-name: Rust
-on:
-  push:
-    branches: [main]
-  pull_request:
-    branches: [main]
-
-env:
-  CARGO_TERM_COLOR: always
-  ACTIONS_LINTS_TOOLCHAIN: 1.50.0
-
-jobs:
-  linting:
-    name: "Lints, pinned toolchain"
-    runs-on: ubuntu-latest
-    steps:
-      - name: Checkout repository
-        uses: actions/checkout@v2
-      - name: Install toolchain
-        uses: actions-rs/toolchain@v1
-        with:
-          toolchain: ${{ env['ACTIONS_LINTS_TOOLCHAIN']  }}
-          default: true
-          components: rustfmt, clippy
-      - name: cargo fmt (check)
-        run: cargo fmt -- --check -l