Skip to content

Release/v2.0

Release/v2.0 #4160

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
extension_ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Install ESP-IDF
uses: espressif/install-esp-idf-action@v1
with:
version: "v5.4.2"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Yarn dependencies
run: |
yarn
yarn install
- name: Run Yarn script with xvfb
run: |
export GIT_VERSION=$(git --version | sed -nre 's/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p')
export IDF_VERSION=$(idf.py --version | sed -nre 's/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p')
export PY_VERSION=$(python --version | sed -nre 's/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p')
export PIP_VERSION=$(python -m pip --version | sed -nre 's/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p')
export PY_PKGS=$(python -m pip list --format json)
xvfb-run --auto-servernum yarn test
- name: Publish Test Report
uses: dorny/test-reporter@v2
if: always()
with:
name: Mocha Tests
path: ./out/results/test-results.json
reporter: mocha-json
- name: Upload if failed test results
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-result.json
path: ./out/results/test-results.json
- name: Package .vsix
run: yarn package
- name: Upload .vsix File
uses: actions/upload-artifact@v4
with:
name: esp-idf-extension.vsix
path: esp-idf-extension.vsix