Skip to content

Commit

Permalink
Update workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
PKief committed Sep 30, 2020
1 parent 0aa3960 commit 918ecf5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,24 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
os: [windows-latest, ubuntu-latest]
node-version: [12.x, 14.x]

name: Test on ${{ matrix.os }} (Node.js ${{ matrix.node-version }})
name: ${{ matrix.os }} (Node.js ${{ matrix.node-version }})

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
- name: Checkout 🛎
uses: actions/checkout@v2
- name: Setup Node.js ${{ matrix.node-version }} ⚙
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- 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 dependencies
- name: Install node_modules 📦
run: npm install
- name: Cache node modules
- name: Cache node_modules 💾
uses: actions/cache@v2
env:
cache-name: cache-node-modules
Expand All @@ -35,9 +36,9 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Lint and Test
- name: Test + Build 🚀
run: |
npm run lint
npm test
npm run vscode:prepublish
env:
DISPLAY: ":99.0"

0 comments on commit 918ecf5

Please sign in to comment.