ci: CI Testing #4
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
# This configuration is based on documentation here: | |
# https://github.com/stateful/vscode-awesome-ux/blob/main/docs/TestingExtensions.md#run-tests-in-cicd | |
name: End-to-end Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- run: npm ci | |
- name: Run tests | |
uses: coactions/setup-xvfb@v1 | |
with: | |
run: npm run test:e2e | |
# Not sure why this is targetting macos, just following the link referenced above | |
# runs-on: macos-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - uses: actions/setup-node@v2 | |
# with: | |
# node-version: 20 | |
# - run: npm install | |
# - name: Run tests | |
# uses: coactions/setup-xvfb@v1 | |
# with: | |
# run: npm run test:e2e |