Add example of headers to the readme #797
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, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12.x | |
- run: npm install | |
- name: Lint | |
run: npm run lint | |
- name: Build .vsix package | |
if: matrix.os != 'ubuntu-latest' | |
run: npm run package | |
- name: Build .vsix package on Linux | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
VERSION=$(node -p "require('./package.json').version") | |
npx vsce package -o vscode-kafka-${VERSION}-${GITHUB_RUN_ID}-${GITHUB_RUN_NUMBER}.vsix | |
- name: Run tests | |
uses: GabrielBB/xvfb-action@v1.0 | |
with: | |
run: npm test | |
- name: Upload linux-built vsix | |
if: matrix.os == 'ubuntu-latest' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: vscode-kafka | |
path: vscode-kafka*.vsix | |