first commit
This commit is contained in:
38
themes/reveal-hugo/.circleci/config.yml
Normal file
38
themes/reveal-hugo/.circleci/config.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
version: 2.1
|
||||
orbs:
|
||||
node: circleci/node@5.0.3
|
||||
go: circleci/go@1.7.2
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
executor:
|
||||
name: node/default
|
||||
tag: current
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: "utilise npm"
|
||||
command: sudo npm install -g npm@latest
|
||||
- restore_cache:
|
||||
keys:
|
||||
- v1-dependencies-{{ checksum "package-lock.json" }}
|
||||
- go/install:
|
||||
version: 1.18.10
|
||||
- node/install-packages:
|
||||
pkg-manager: npm
|
||||
cache-path: ~/project/node_modules
|
||||
override-ci-command: npm install
|
||||
- save_cache:
|
||||
paths:
|
||||
- node_modules
|
||||
key: v1-dependencies-{{ checksum "package-lock.json" }}
|
||||
- run:
|
||||
name: "install hugo"
|
||||
command: npm install hugo-extended
|
||||
- run:
|
||||
name: "build site"
|
||||
command: npm run build
|
||||
workflows:
|
||||
main:
|
||||
jobs:
|
||||
- build-and-test
|
||||
Reference in New Issue
Block a user