Merge pull request #320 from dcermak/dependabot/pip/coverage-7.6.8 #762
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: build the vscode extension | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Get npm cache directory | |
id: npm-cache-dir | |
shell: bash | |
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} | |
- uses: actions/cache@v4 | |
id: npm-cache | |
with: | |
path: ${{ steps.npm-cache-dir.outputs.dir }} | |
key: node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
-node- | |
- run: npm install | |
- run: npm run package | |
- uses: actions/upload-artifact@v4 | |
if: ${{ matrix.node-version == '18.x' }} | |
with: | |
name: rpm-spec-language-server.vsix | |
path: rpm-spec-language-server-*.vsix |