Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Check out repo outside of reusable actions

Max Brunsfeld5e2eb436ff27
diff --git a/.github/actions/rust_fmt/action.yml b/.github/actions/check_formatting/action.yml
similarity index 61%
rename from .github/actions/rust_fmt/action.yml
rename to .github/actions/check_formatting/action.yml
index c5d4ef3f0f0..7fef26407bd 100644
--- a/.github/actions/rust_fmt/action.yml
+++ b/.github/actions/check_formatting/action.yml
@@ -1,5 +1,5 @@
-name: 'Run rustfmt'
-description: 'Runs rustfmt'
+name: 'Check formatting'
+description: 'Checks code formatting use cargo fmt'
runs:
using: "composite"
@@ -10,12 +10,6 @@ runs:
rustup set profile minimal
rustup update stable
- - name: Checkout repo
- uses: actions/checkout@v3
- with:
- clean: false
- submodules: "recursive"
-
- name: cargo fmt
shell: bash -euxo pipefail {0}
run: cargo fmt --all -- --check
diff --git a/.github/actions/run_tests/action.yml b/.github/actions/run_tests/action.yml
index abb4e5f18be..6d2a2c9f37b 100644
--- a/.github/actions/run_tests/action.yml
+++ b/.github/actions/run_tests/action.yml
@@ -17,12 +17,6 @@ runs:
with:
node-version: "18"
- - name: Checkout repo
- uses: actions/checkout@v3
- with:
- clean: false
- submodules: "recursive"
-
- name: Limit target directory size
shell: bash -euxo pipefail {0}
run: script/clear-target-dir-if-larger-than 70
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7c90810ad07..037ac228a9e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -23,8 +23,14 @@ jobs:
- self-hosted
- test
steps:
+ - name: Checkout repo
+ uses: actions/checkout@v3
+ with:
+ clean: false
+ submodules: "recursive"
+
- name: Run rustfmt
- uses: ./.github/actions/rust_fmt
+ uses: ./.github/actions/check_formatting
tests:
name: Run tests
@@ -33,6 +39,12 @@ jobs:
- test
needs: rustfmt
steps:
+ - name: Checkout repo
+ uses: actions/checkout@v3
+ with:
+ clean: false
+ submodules: "recursive"
+
- name: Run tests
uses: ./.github/actions/run_tests
diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.yml
index f4ecf4669e1..fc59137d93b 100644
--- a/.github/workflows/release_nightly.yml
+++ b/.github/workflows/release_nightly.yml
@@ -20,8 +20,14 @@ jobs:
- self-hosted
- test
steps:
+ - name: Checkout repo
+ uses: actions/checkout@v3
+ with:
+ clean: false
+ submodules: "recursive"
+
- name: Run rustfmt
- uses: ./.github/actions/rust_fmt
+ uses: ./.github/actions/check_formatting
tests:
name: Run tests
@@ -30,6 +36,12 @@ jobs:
- test
needs: rustfmt
steps:
+ - name: Checkout repo
+ uses: actions/checkout@v3
+ with:
+ clean: false
+ submodules: "recursive"
+
- name: Run tests
uses: ./.github/actions/run_tests