Browse Source

Switch from CircleCI -> GitHub Workflows

pull/191/head
Josh Dick 5 years ago
parent
commit
cdff3a934c
No known key found for this signature in database GPG Key ID: 504C35EB636445DC
  1. 38
      .circleci/config.yml
  2. 27
      .github/workflows/nodejs.yml

38
.circleci/config.yml

@ -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

27
.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
Loading…
Cancel
Save