Bump @typescript-eslint/eslint-plugin from 8.18.1 to 8.18.2 #794
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: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
jobs: | |
build: | |
name: Testing on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
working-directory: ${{ github.workspace }} | |
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v4 | |
- name: fetch all history and tags for gitversion | |
run: git fetch --prune --unshallow | |
- name: install gitversion | |
uses: gittools/actions/gitversion/[email protected] | |
with: | |
versionSpec: '6.0.x' | |
- name: execute gitversion | |
id: gitversion | |
uses: gittools/actions/gitversion/[email protected] | |
- name: print gitversion | |
run: | | |
echo "Major: ${{ steps.gitversion.outputs.major }}" | |
echo "Minor: ${{ steps.gitversion.outputs.minor }}" | |
echo "Patch: ${{ steps.gitversion.outputs.patch }}" | |
echo "MajorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}" | |
echo "SemVer: ${{ steps.gitversion.outputs.semVer }}" | |
- name: setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: clean install dependencies | |
run: npm ci | |
- name: update metadata in package.json (Windows) | |
if: success() && matrix.os == 'windows-latest' | |
shell: powershell | |
run: | | |
Get-Content -Path package.json | ForEach-Object { | |
if ($_ -like '*"version":*') { | |
$_ -replace ': ".*"', ': "${{ steps.gitversion.outputs.semVer }}"' | |
} else { | |
$_ | |
} | |
} | Add-Content -Path package.bkp.json | |
Move-Item -Path package.bkp.json -Destination package.json -Force | |
- name: update metadata in package.json (non-Windows) | |
if: success() && matrix.os != 'windows-latest' | |
run: | | |
sed -e '/"version"/s/: ".*"/: "${{ steps.gitversion.outputs.semVer }}"/' package.json | tee package.json.modified | |
mv package.json.modified package.json | |
- name: ensure there are no linting errors | |
run: npm run lint | |
- name: compile the extension and the tests | |
run: npm run compile | |
- name: run tests | |
uses: coactions/setup-xvfb@v1 | |
with: | |
run: npm run test | |
- name: compile and create vsix | |
run: npm run package | |
- name: upload vsix as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: plastic-scm-${{ steps.gitversion.outputs.semVer }}-${{ runner.os }}.vsix | |
path: plastic-scm-${{ steps.gitversion.outputs.semVer }}.vsix |