From 044f35f91d1f95f051c98803609cdf611c36acb9 Mon Sep 17 00:00:00 2001 From: Kathryn Kodama Date: Tue, 27 Apr 2021 16:47:48 -0400 Subject: [PATCH] Setup GitHub actions (#78) * Setup GitHub actions Signed-off-by: Kathryn Kodama * Remove travis build Signed-off-by: Kathryn Kodama --- .github/workflows/mp-starter-vscode.yml | 26 +++++++++++++++++++++++++ .travis.yml | 15 -------------- 2 files changed, 26 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/mp-starter-vscode.yml delete mode 100644 .travis.yml 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