Fix and add tests for configure_vscode script #676
Workflow file for this run
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: checks.scripts | |
on: | |
push: | |
pull_request: | |
jobs: | |
icons-build: | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
matrix: | |
os: [ macos, ubuntu, windows ] | |
fail-fast: false # Still interested to see results from other combinations | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: Setup node | |
uses: ./.github/actions/setup-node | |
- | |
name: Install dependencies | |
uses: ./.github/actions/npm-install-dependencies | |
- | |
name: Create icons | |
run: npm run icons:build | |
install-deps: | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
matrix: | |
install-deps-before: [true, false] | |
install-command: | |
- npm run install-deps | |
- npm run install-deps -- --no-errors | |
- npm run install-deps -- --ci | |
- npm run install-deps -- --fresh --non-deterministic | |
- npm run install-deps -- --fresh | |
- npm run install-deps -- --non-deterministic | |
os: [ macos, ubuntu, windows ] | |
fail-fast: false # Still interested to see results from other combinations | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: Setup node | |
uses: ./.github/actions/setup-node | |
- | |
name: Install dependencies | |
if: matrix.install-deps-before == true | |
uses: ./.github/actions/npm-install-dependencies | |
- | |
name: Run install-deps | |
run: ${{ matrix.install-command }} | |
configure-vscode: | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
matrix: | |
os: [ macos, ubuntu, windows ] | |
fail-fast: false # Still interested to see results from other combinations | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- | |
name: Install VSCode on macOS | |
if: matrix.os == 'macos' | |
run: brew install --cask visual-studio-code | |
- | |
name: Install VSCode on Linux | |
if: matrix.os == 'ubuntu' | |
run: flatpak install flathub com.visualstudio.code | |
- | |
name: Install VSCode on Windows | |
if: matrix.os == 'windows' | |
run: |- | |
scoop bucket add extras | |
scoop install vscode | |
- | |
name: Install dependencies | |
uses: ./.github/actions/npm-install-dependencies | |
- | |
name: Create icons | |
run: npm run icons:build |