From cdff3a934cf67ce22568b426566492bbf318acd3 Mon Sep 17 00:00:00 2001 From: Josh Dick Date: Mon, 11 Nov 2019 14:53:13 -0500 Subject: [PATCH] Switch from CircleCI -> GitHub Workflows --- .circleci/config.yml | 38 ------------------------------------ .github/workflows/nodejs.yml | 27 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 38 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/nodejs.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index d25fa66..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,38 +0,0 @@ -# Javascript Node CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-javascript/ for more details -# -version: 2 -jobs: - build: - docker: - # specify the version you desire here - - image: circleci/node:latest - - # Specify service dependencies here if necessary - # CircleCI maintains a library of pre-built images - # documented at https://circleci.com/docs/2.0/circleci-images/ - # - image: circleci/mongo:3.4.4 - - working_directory: ~/onedark.vim/build - - steps: - - checkout: - path: ~/onedark.vim - - # Download and cache dependencies - - restore_cache: - keys: - - v1-dependencies-{{ checksum "package.json" }} - # fallback to using the latest cache if no exact match is found - - v1-dependencies- - - - run: npm install - - - save_cache: - paths: - - node_modules - key: v1-dependencies-{{ checksum "package.json" }} - - # run tests! - - run: npm test diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..757f136 --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,27 @@ +name: Validate Templates + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build, and test + working-directory: build + run: | + npm ci + npm run build --if-present + npm test + env: + CI: true