Added Ansible icon #3303
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: Build + Test | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest] | |
node-version: [16.x] | |
name: ${{ matrix.os }} (Node.js ${{ matrix.node-version }}) | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@v4 | |
- name: Setup Node.js ${{ matrix.node-version }} âš™ | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Run display server 🖥 | |
run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb" | |
shell: bash | |
if: ${{ success() && matrix.os == 'ubuntu-latest' }} | |
- name: Install node_modules 📦 | |
run: npm ci | |
- name: Cache node_modules 💾 | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-node-modules | |
with: | |
# npm cache files are stored in `~/.npm` on Linux/macOS | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Test + Build 🚀 | |
run: | | |
npm test | |
npm run vscode:prepublish | |
env: | |
DISPLAY: ':99.0' |