Bump eslint from 9.16.0 to 9.17.0 #488
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: [develop] | |
pull_request: | |
branches: [develop] | |
release: | |
types: [created] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
vscode-version: [1.81.1, 1.83.1, 1.85.2, 1.86.0, 1.88.1, 1.91.1, 1.95.3] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
cache: 'npm' | |
- name: Install Node.js Dependencies | |
run: npm ci | |
- name: Run Linux Tests | |
if: runner.os == 'Linux' | |
run: | | |
sh src/test/setup-slurm-wrapper.sh | |
xvfb-run -a npm test -- ${{ matrix.vscode-version }} | |
- name: Run MacOS Tests | |
if: runner.os == 'macOS' | |
run: | | |
sh src/test/setup-slurm-wrapper.sh | |
npm test -- ${{ matrix.vscode-version }} | |
- name: Run Windows Tests | |
if: runner.os == 'Windows' | |
run: npm test -- ${{ matrix.vscode-version }} | |
test-stable: | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
cache: 'npm' | |
- name: Install Node.js Dependencies | |
run: npm ci | |
- name: Run Linux Tests | |
if: runner.os == 'Linux' | |
run: | | |
sh src/test/setup-slurm-wrapper.sh | |
xvfb-run -a npm test -- stable | |
- name: Run MacOS Tests | |
if: runner.os == 'macOS' | |
run: | | |
sh src/test/setup-slurm-wrapper.sh | |
npm test -- stable | |
- name: Run Windows Tests | |
if: runner.os == 'Windows' | |
run: npm test -- stable | |
coverage: | |
runs-on: ubuntu-latest | |
needs: test-stable | |
if: success() | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
- name: Install Node.js Dependencies | |
run: npm ci | |
- name: Coverage | |
run: | | |
sh src/test/setup-slurm-wrapper.sh | |
xvfb-run -a npm run coverage | |
- name: Upload coverage to CodeCov | |
uses: codecov/codecov-action@v5 | |
with: | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
check-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
- name: Install Node.js Dependencies | |
run: npm ci | |
- name: Check Format | |
run: npm run check-format | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
needs: test-stable | |
if: success() && startsWith(github.ref, 'refs/tags/') | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
- name: Install Node.js Dependencies | |
run: npm ci | |
- name: Package | |
run: npm run package | |
- name: Upload Release Artifact | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: '*.vsix' | |
fail_on_unmatched_files: true | |
- name: Deploy | |
run: npm run deploy | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} |