Skip to content

chore(deps): update dependency protobufjs-cli to v2.7.0 #762

chore(deps): update dependency protobufjs-cli to v2.7.0

chore(deps): update dependency protobufjs-cli to v2.7.0 #762

Workflow file for this run

name: Build VS Code extension
on:
push:
branches: [master]
pull_request:
permissions:
# Write permissions needed for publishing the release
contents: write
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build_vscode_ext:
name: Build VS Code extension
runs-on: ubuntu-latest
if: ${{ github.repository == 'bazel-contrib/vscode-bazel' }} # Allow CI-runs only for events from/to this repository
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Install Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
cache: "npm"
- name: Install buildifier
uses: ./.github/actions/install-buildifier
with:
version: "8.2.1"
- name: Install Javascript dependencies
run: npm ci
- name: Check formatting
run: npm run format-check
- name: Prepare protobufs
run: npm run prebuild
- name: Lint
run: npm run lint-check
- uses: bazel-contrib/setup-bazel@c5acdfb288317d0b5c0bbd7a396a3dc868bb0f86 # 0.19.0
with:
bazelisk-cache: true
disk-cache: false
repository-cache: false
module-root: ${{ github.workspace }}/test/bazel_workspace
- name: Build Bazel workspace to assure it is working & warm up cache
run: bazel build //...
working-directory: ${{ github.workspace }}/test/bazel_workspace/
# Required for the test cases
- name: Install system dependencies
run: sudo apt install -y binutils rustfilt
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- name: Package VS Code extension
run: npm run package
- name: Upload Workflow Artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: vscode-bazel-prerelease.vsix
path: vscode-bazel-*.vsix
if-no-files-found: error
- uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4
id: release
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
with:
release-type: node
- name: Upload Release Artifact
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && steps.release.outputs.release_created }}
shell: bash
run: |
filename=`echo vscode-bazel-*.vsix`;
gh release upload ${{ steps.release.outputs.tag_name }} "$filename"
env:
GH_TOKEN: ${{ github.token }}