diff --git a/.github/workflows/mp-starter-vscode.yml b/.github/workflows/mp-starter-vscode.yml new file mode 100644 index 0000000..e822254 --- /dev/null +++ b/.github/workflows/mp-starter-vscode.yml @@ -0,0 +1,26 @@ + +name: Node.js CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: 12.x + - run: npm install + - run: sudo apt-get install xvfb + - run: npm run lint + - run: xvfb-run --auto-servernum npm test + + + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e44d400..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: node_js -os: - - linux -node_js: lts/* - -# xvfb setup script for Linux that is necessary to run VS Code in headless Linux CI machines -before_install: - - | - if [ $TRAVIS_OS_NAME == "linux" ]; then - export DISPLAY=':99.0' - /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & - fi -script: - - npm run lint - - npm run test