Skip to content

Commit

Permalink
Fix devel testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Mar 2, 2022
1 parent 8596a6b commit bbdfeb8
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Clone development branch of ansible-language-server
if: ${{ matrix.devel }}
uses: actions/checkout@v2
with:
repository: ansible/ansible-language-server
path: ansible-language-server
# We will later move this folder to ../ due to below bug:
# https://github.com/actions/checkout/issues/197
# - name: Clone development branch of ansible-language-server
# if: ${{ matrix.devel }}
# uses: actions/checkout@v2
# with:
# repository: ansible/ansible-language-server
# path: ansible-language-server
# # We will later move this folder to ../ due to below bug:
# # https://github.com/actions/checkout/issues/197

# ~400mb, caching them should speedup test-ui execution
- name: Enable test-resources caching
Expand All @@ -96,27 +96,22 @@ jobs:
if: ${{ matrix.devel }}
run: |
set -ex
mv ansible-language-server ..
npm link --save ../ansible-language-server
pushd ../ansible-language-server
npm ci
npm run compile
popd
npm ls --depth=0 --link=true
npm install --save https://github.com/ansible/ansible-language-server
git diff
shell: bash

# Build extension
- name: Run build
run: npm run compile

- name: Run package
run: npm run package

- name: Run ${{ matrix.npm-target }}
uses: GabrielBB/xvfb-action@v1.0
with:
run: npm run ${{ matrix.npm-target }}

- name: Run package
run: npm run package

- name: Publish vsix artifact
if: ${{ github.event.number && matrix.upload-artifact }}
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit bbdfeb8

Please # to comment.