Skip to content

chore: Fixed the README.md #448

chore: Fixed the README.md

chore: Fixed the README.md #448

Workflow file for this run

name: test
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
test:
if: "!contains(github.event.head_commit.message, 'skip ci')"
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
version: ["1.65.0", "stable", "insiders"]
env:
MOCHA_COLORS: 1
MOCHA_REPORTER: "mocha-github-actions-reporter"
runs-on: ${{ matrix.os }}-latest
name: ${{ matrix.os }} (VSCode ${{ matrix.version }})
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Install Dependencies
run: npm ci || npm install
- name: Setup Mocha Report
run: npm install mocha-github-actions-reporter --no-save
- name: Enable full coverage
run: sed -i.bak 's/"\*"//g' package.json
shell: bash
- name: Cache VSCode binary
id: cache-vscode
uses: actions/cache@v1
with:
path: .vscode-test
key: vscode-${{ runner.os }}-${{ matrix.version }}-${{ github.run_id }}
restore-keys: |
vscode-${{ runner.os }}-${{ matrix.version }}-
vscode-${{ runner.os }}-
- name: Run tests
uses: GabrielBB/[email protected]
with:
run: npm test
env:
CODE_VERSION: ${{ matrix.version }}
continue-on-error: ${{ matrix.version == 'insiders' }}
- name: Upload coverage
run: |
cover() {
curl -s https://codecov.io/bash -o codecov.sh
bash codecov.sh -X gcov -f ./coverage/coverage-final.json -f ./coverage/lcov.info
}
for i in {1..5}; do cover && break || sleep 5; done
shell: bash
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CODECOV_NAME: ${{ matrix.os }} ${{ matrix.version }}
- name: Remove old versions of VSCode
run: ls -1 -d .vscode-test/vscode-* | sed -e '$ d' | xargs -I {} rm -rf {} || true
shell: bash
artifact:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: npm install
- name: Update changelog with unreleased changes
run: npm run changelog:update -- -u
- name: Package extension
uses: lannonbr/vsce-action@master
with:
args: "package -o clipboard-manager.vsix"
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: "clipboard-manager-${{ github.sha }}.vsix"
path: "clipboard-manager.vsix"