chore: bump markdown-it-github-alerts to 0.3.0 (override self markdown-it peer) #163
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: Test | |
# Run tests only. | |
# | |
# This workflow is designed to be run on PR to validate commits. | |
# It can be seen as a short version of `main.yml`. | |
on: | |
pull_request: | |
branches: ["master"] | |
# Sometimes we want to test a few minor changes. | |
# To avoid triggering the workflow twice, | |
# this is only enabled for branch names that are very unlikely to be a PR head. | |
push: | |
branches: ["dev/-/**"] | |
paths: | |
- "src/**" | |
- "package-lock.json" | |
- "!**.md" | |
workflow_dispatch: | |
repository_dispatch: | |
types: ["test"] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: "Setup Node.js environment" | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "14" | |
cache: "npm" | |
- name: "Install dependencies" | |
run: | | |
npm ci | |
npm install -g vsce@"^2.5" | |
- name: "Build debug" | |
shell: pwsh | |
run: | | |
$env:NODE_ENV = 'development' | |
vsce package --out debug.vsix | |
- name: Test | |
uses: GabrielBB/xvfb-action@v1.0 | |
with: | |
run: npm test | |
- name: "(debug) Upload npm log" | |
if: ${{ !success() }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: "npm-debug-log" | |
path: "~/.npm/_logs" |