66  pull_request :
77  push :
88    branches :
9-     - auto 
10-     - try 
9+        - auto 
10+        - try 
1111
1212env :
1313  CARGO_INCREMENTAL : 0 
1414  CARGO_NET_RETRY : 10 
1515  CI : 1 
1616  RUST_BACKTRACE : short 
17-   RUSTFLAGS : " -D warnings -W unreachable-pub -W rust-2021-compatibility " 
17+   RUSTFLAGS : " -D warnings -W unreachable-pub -W bare-trait-objects " 
1818  RUSTUP_MAX_RETRIES : 10 
1919
2020jobs :
@@ -31,25 +31,25 @@ jobs:
3131        os : [ubuntu-latest, windows-latest, macos-latest] 
3232
3333    steps :
34-     - name : Checkout repository 
35-       uses : actions/checkout@v3 
36-       with :
37-         ref : ${{ github.event.pull_request.head.sha }} 
38-         fetch-depth : 20 
34+        - name : Checkout repository 
35+          uses : actions/checkout@v3 
36+          with :
37+            ref : ${{ github.event.pull_request.head.sha }} 
38+            fetch-depth : 20 
3939
40-     - name : Install Rust toolchain 
41-       run : | 
42-         rustup update --no-self-update stable 
43-         rustup component add rustfmt rust-src 
40+        - name : Install Rust toolchain 
41+          run : | 
42+            rustup update --no-self-update stable 
43+            rustup component add rustfmt rust-src 
4444
45-      - name : Cache Dependencies 
46-       uses : Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72 
45+         - name : Cache Dependencies 
46+          uses : Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72 
4747
48-     - name : Compile 
49-       run : cargo test --no-run --locked 
48+        - name : Compile 
49+          run : cargo test --no-run --locked 
5050
51-     - name : Test 
52-       run : cargo test -- --nocapture --quiet 
51+        - name : Test 
52+          run : cargo test -- --nocapture --quiet 
5353
5454  #  Weird targets to catch non-portable code
5555  rust-cross :
@@ -64,25 +64,25 @@ jobs:
6464      targets_ide : " wasm32-unknown-unknown" 
6565
6666    steps :
67-     - name : Checkout repository 
68-       uses : actions/checkout@v3 
69- 
70-     - name : Install Rust toolchain 
71-       run : | 
72-         rustup update --no-self-update stable 
73-         rustup target add ${{ env.targets }} ${{ env.targets_ide }} 
74- 
75-      - name : Cache Dependencies 
76-       uses : Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72 
77- 
78-     - name : Check 
79-       run : | 
80-         for target in ${{ env.targets }}; do 
81-           cargo check --target=$target --all-targets 
82-         done 
83-         for target in ${{ env.targets_ide }}; do 
84-           cargo check -p ide --target=$target --all-targets 
85-         done 
67+        - name : Checkout repository 
68+          uses : actions/checkout@v3 
69+ 
70+        - name : Install Rust toolchain 
71+          run : | 
72+            rustup update --no-self-update stable 
73+            rustup target add ${{ env.targets }} ${{ env.targets_ide }} 
74+ 
75+         - name : Cache Dependencies 
76+          uses : Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72 
77+ 
78+        - name : Check 
79+          run : | 
80+            for target in ${{ env.targets }}; do 
81+              cargo check --target=$target --all-targets 
82+            done 
83+            for target in ${{ env.targets_ide }}; do 
84+              cargo check -p ide --target=$target --all-targets 
85+            done 
8686
8787   typescript :
8888    if : github.repository == 'rust-lang/rust-analyzer' 
@@ -95,47 +95,47 @@ jobs:
9595    runs-on : ${{ matrix.os }} 
9696
9797    steps :
98-     - name : Checkout repository 
99-       uses : actions/checkout@v3 
100- 
101-     - name : Install Nodejs 
102-       uses : actions/setup-node@v1 
103-       with :
104-         node-version : 16.x 
105- 
106-     - name : Install xvfb 
107-       if : matrix.os == 'ubuntu-latest' 
108-       run : sudo apt-get install -y xvfb 
109- 
110-     - run : npm ci 
111-       working-directory : ./editors/code 
112- 
113- #     - run: npm audit || { sleep 10 && npm audit; } || { sleep 30 && npm audit; }
114- #       if: runner.os == 'Linux'
115- #       working-directory: ./editors/code
116- 
117-     - run : npm run lint 
118-       working-directory : ./editors/code 
119- 
120-     - name : Run VS Code tests (Linux) 
121-       if : matrix.os == 'ubuntu-latest' 
122-       env :
123-         VSCODE_CLI : 1 
124-       run : xvfb-run npm test 
125-       working-directory : ./editors/code 
126- 
127-     - name : Run VS Code tests (Windows) 
128-       if : matrix.os == 'windows-latest' 
129-       env :
130-         VSCODE_CLI : 1 
131-       run : npm test 
132-       working-directory : ./editors/code 
133- 
134-     - run : npm run pretest 
135-       working-directory : ./editors/code 
136- 
137-     - run : npm run package --scripts-prepend-node-path 
138-       working-directory : ./editors/code 
98+        - name : Checkout repository 
99+          uses : actions/checkout@v3 
100+ 
101+        - name : Install Nodejs 
102+          uses : actions/setup-node@v1 
103+          with :
104+            node-version : 16.x 
105+ 
106+        - name : Install xvfb 
107+          if : matrix.os == 'ubuntu-latest' 
108+          run : sudo apt-get install -y xvfb 
109+ 
110+        - run : npm ci 
111+          working-directory : ./editors/code 
112+ 
113+        #     - run: npm audit || { sleep 10 && npm audit; } || { sleep 30 && npm audit; }
114+        #       if: runner.os == 'Linux'
115+        #       working-directory: ./editors/code
116+ 
117+        - run : npm run lint 
118+          working-directory : ./editors/code 
119+ 
120+        - name : Run VS Code tests (Linux) 
121+          if : matrix.os == 'ubuntu-latest' 
122+          env :
123+            VSCODE_CLI : 1 
124+          run : xvfb-run npm test 
125+          working-directory : ./editors/code 
126+ 
127+        - name : Run VS Code tests (Windows) 
128+          if : matrix.os == 'windows-latest' 
129+          env :
130+            VSCODE_CLI : 1 
131+          run : npm test 
132+          working-directory : ./editors/code 
133+ 
134+        - run : npm run pretest 
135+          working-directory : ./editors/code 
136+ 
137+        - run : npm run package --scripts-prepend-node-path 
138+          working-directory : ./editors/code 
139139
140140  end-success :
141141    name : bors build finished 
0 commit comments