chore: bump @babel/traverse from 7.22.11 to 7.23.2 (#233) #720
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: test | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, synchronize] | |
push: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🏗 Setup repo | |
uses: actions/checkout@v3 | |
- name: 🏗 Setup project | |
uses: ./.github/actions/setup-project | |
- name: ✅ Lint project | |
run: npm run lint -- --max-warnings 0 | |
scripts: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🏗 Setup repo | |
uses: actions/checkout@v3 | |
- name: 🏗 Setup project | |
uses: ./.github/actions/setup-project | |
- name: 🧪 Test scripts | |
run: npm run test:scripts | |
bundled: | |
# This extension is bundled before publishing to the stores, | |
# it removes the need for vscode to download dependencies, making install fast. | |
# But this version might cause issues with webpack "hijacking" `require` statements. | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🏗 Setup repo | |
uses: actions/checkout@v3 | |
- name: 🏗 Setup project | |
uses: ./.github/actions/setup-project | |
with: | |
with-fixture: true | |
- name: 👷 Build tests | |
run: npm run build | |
- name: 📦 Bundle extension | |
run: npm run build:production | |
# When bundled, these dependencies aren't available in normal environments. | |
# This drops all "dependencies" from the project, to only rely on the bundle itself. | |
- name: 🧹 Remove bundled dependencies | |
run: | | |
echo "$(jq 'del(.dependencies)' package.json)" > package.json | |
npm install --no-package-lock --ignore-scripts | |
- name: 🧪 Test project | |
uses: ./.github/actions/test-vscode | |
with: | |
command: npm run test:vscode | |
env: | |
VSCODE_VERSION: stable | |
vscode: | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu, macos, windows] | |
vscode: [oldest, stable] | |
steps: | |
- name: 🏗 Setup repo | |
uses: actions/checkout@v3 | |
- name: 🏗 Setup project | |
uses: ./.github/actions/setup-project | |
with: | |
with-fixture: true | |
- name: 👷 Build project | |
run: npm run build | |
# This handles the "oldest" vscode version by looking up our "oldest supported version" | |
- name: 🕵️ Set vscode version | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const { engines } = require('./package.json') | |
const vscode = '${{ matrix.vscode }}' | |
const target = vscode === 'oldest' | |
? engines.vscode.substring(1) | |
: vscode | |
core.exportVariable('VSCODE_VERSION', target) | |
- name: 🧪 Test project | |
uses: ./.github/actions/test-vscode | |
with: | |
command: npm run test:vscode |