diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/actions/github-release/main.js | 2 | ||||
-rw-r--r-- | .github/workflows/ci.yaml | 17 | ||||
-rw-r--r-- | .github/workflows/release.yaml | 21 |
3 files changed, 29 insertions, 11 deletions
diff --git a/.github/actions/github-release/main.js b/.github/actions/github-release/main.js index 2c7eedbe2..b499cd0fd 100644 --- a/.github/actions/github-release/main.js +++ b/.github/actions/github-release/main.js | |||
@@ -16,7 +16,7 @@ async function runOnce() { | |||
16 | const slug = process.env.GITHUB_REPOSITORY; | 16 | const slug = process.env.GITHUB_REPOSITORY; |
17 | const owner = slug.split('/')[0]; | 17 | const owner = slug.split('/')[0]; |
18 | const repo = slug.split('/')[1]; | 18 | const repo = slug.split('/')[1]; |
19 | const sha = process.env.GITHUB_SHA; | 19 | const sha = process.env.HEAD_SHA; |
20 | 20 | ||
21 | core.info(`files: ${files}`); | 21 | core.info(`files: ${files}`); |
22 | core.info(`name: ${name}`); | 22 | core.info(`name: ${name}`); |
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 00f299ff1..ed9191c49 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml | |||
@@ -97,7 +97,13 @@ jobs: | |||
97 | 97 | ||
98 | typescript: | 98 | typescript: |
99 | name: TypeScript | 99 | name: TypeScript |
100 | runs-on: ubuntu-latest | 100 | strategy: |
101 | fail-fast: false | ||
102 | matrix: | ||
103 | os: [ubuntu-latest, windows-latest, macos-latest] | ||
104 | |||
105 | runs-on: ${{ matrix.os }} | ||
106 | |||
101 | steps: | 107 | steps: |
102 | - name: Checkout repository | 108 | - name: Checkout repository |
103 | uses: actions/checkout@v2 | 109 | uses: actions/checkout@v2 |
@@ -111,10 +117,19 @@ jobs: | |||
111 | working-directory: ./editors/code | 117 | working-directory: ./editors/code |
112 | 118 | ||
113 | - run: npm audit || { sleep 10 && npm audit; } || { sleep 30 && npm audit; } | 119 | - run: npm audit || { sleep 10 && npm audit; } || { sleep 30 && npm audit; } |
120 | if: runner.os == 'Linux' | ||
114 | working-directory: ./editors/code | 121 | working-directory: ./editors/code |
115 | 122 | ||
116 | - run: npm run lint | 123 | - run: npm run lint |
117 | working-directory: ./editors/code | 124 | working-directory: ./editors/code |
118 | 125 | ||
126 | - name: Run vscode tests | ||
127 | uses: GabrielBB/[email protected] | ||
128 | env: | ||
129 | VSCODE_CLI: 1 | ||
130 | with: | ||
131 | run: npm --prefix ./editors/code test | ||
132 | # working-directory: ./editors/code # does not work: https://github.com/GabrielBB/xvfb-action/issues/8 | ||
133 | |||
119 | - run: npm run package --scripts-prepend-node-path | 134 | - run: npm run package --scripts-prepend-node-path |
120 | working-directory: ./editors/code | 135 | working-directory: ./editors/code |
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3f52f31f8..1ae8ed1b6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml | |||
@@ -6,7 +6,7 @@ on: | |||
6 | push: | 6 | push: |
7 | branches: | 7 | branches: |
8 | - release | 8 | - release |
9 | - nightly | 9 | - trigger-nightly |
10 | 10 | ||
11 | env: | 11 | env: |
12 | CARGO_INCREMENTAL: 0 | 12 | CARGO_INCREMENTAL: 0 |
@@ -20,7 +20,7 @@ jobs: | |||
20 | runs-on: ${{ matrix.os }} | 20 | runs-on: ${{ matrix.os }} |
21 | strategy: | 21 | strategy: |
22 | matrix: | 22 | matrix: |
23 | os: [ubuntu-latest, windows-latest, macos-latest] | 23 | os: [ubuntu-16.04, windows-latest, macos-latest] |
24 | 24 | ||
25 | steps: | 25 | steps: |
26 | - name: Checkout repository | 26 | - name: Checkout repository |
@@ -42,25 +42,25 @@ jobs: | |||
42 | override: true | 42 | override: true |
43 | 43 | ||
44 | - name: Install Nodejs | 44 | - name: Install Nodejs |
45 | if: matrix.os == 'ubuntu-latest' | 45 | if: matrix.os == 'ubuntu-16.04' |
46 | uses: actions/setup-node@v1 | 46 | uses: actions/setup-node@v1 |
47 | with: | 47 | with: |
48 | node-version: 12.x | 48 | node-version: 12.x |
49 | 49 | ||
50 | - name: Dist | 50 | - name: Dist |
51 | if: matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/release' | 51 | if: matrix.os == 'ubuntu-16.04' && github.ref == 'refs/heads/release' |
52 | run: cargo xtask dist --client 0.2.$GITHUB_RUN_NUMBER | 52 | run: cargo xtask dist --client 0.2.$GITHUB_RUN_NUMBER |
53 | 53 | ||
54 | - name: Dist | 54 | - name: Dist |
55 | if: matrix.os == 'ubuntu-latest' && github.ref != 'refs/heads/release' | 55 | if: matrix.os == 'ubuntu-16.04' && github.ref != 'refs/heads/release' |
56 | run: cargo xtask dist --nightly --client 0.3.$GITHUB_RUN_NUMBER-nightly | 56 | run: cargo xtask dist --nightly --client 0.3.$GITHUB_RUN_NUMBER-nightly |
57 | 57 | ||
58 | - name: Dist | 58 | - name: Dist |
59 | if: matrix.os != 'ubuntu-latest' | 59 | if: matrix.os != 'ubuntu-16.04' |
60 | run: cargo xtask dist | 60 | run: cargo xtask dist |
61 | 61 | ||
62 | - name: Nightly analysis-stats check | 62 | - name: Nightly analysis-stats check |
63 | if: matrix.os == 'ubuntu-latest' && github.ref != 'refs/heads/release' | 63 | if: matrix.os == 'ubuntu-16.04' && github.ref != 'refs/heads/release' |
64 | run: ./dist/rust-analyzer-linux analysis-stats . | 64 | run: ./dist/rust-analyzer-linux analysis-stats . |
65 | 65 | ||
66 | - name: Upload artifacts | 66 | - name: Upload artifacts |
@@ -71,7 +71,7 @@ jobs: | |||
71 | 71 | ||
72 | publish: | 72 | publish: |
73 | name: publish | 73 | name: publish |
74 | runs-on: ubuntu-latest | 74 | runs-on: ubuntu-16.04 |
75 | needs: ['dist'] | 75 | needs: ['dist'] |
76 | steps: | 76 | steps: |
77 | - name: Install Nodejs | 77 | - name: Install Nodejs |
@@ -88,13 +88,16 @@ jobs: | |||
88 | - name: Checkout repository | 88 | - name: Checkout repository |
89 | uses: actions/checkout@v2 | 89 | uses: actions/checkout@v2 |
90 | 90 | ||
91 | - run: echo "::set-env name=HEAD_SHA::$(git rev-parse HEAD)" | ||
92 | - run: 'echo "HEAD_SHA: $HEAD_SHA"' | ||
93 | |||
91 | - uses: actions/download-artifact@v1 | 94 | - uses: actions/download-artifact@v1 |
92 | with: | 95 | with: |
93 | name: dist-macos-latest | 96 | name: dist-macos-latest |
94 | path: dist | 97 | path: dist |
95 | - uses: actions/download-artifact@v1 | 98 | - uses: actions/download-artifact@v1 |
96 | with: | 99 | with: |
97 | name: dist-ubuntu-latest | 100 | name: dist-ubuntu-16.04 |
98 | path: dist | 101 | path: dist |
99 | - uses: actions/download-artifact@v1 | 102 | - uses: actions/download-artifact@v1 |
100 | with: | 103 | with: |