Skip to content

Commit

Permalink
upd workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Toxblh committed Jul 21, 2021
1 parent 476a025 commit ce4b706
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 4 deletions.
41 changes: 41 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
kind: pipeline
type: docker
name: build

steps:
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
mount:
- ./node_modules

- name: install
image: node:lts
commands:
- node -v
- npm -v
- npm install

- name: testing
image: node:lts
commands:
- npm run test -- --colors --forceExit

- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
rebuild: true
mount:
- ./node_modules

volumes:
- name: cache
host:
path: /tmp/cache
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x]
node-version: [10.x, 12.x, 14.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: yarn install, build and test
- name: npm install and test
run: |
yarn install --frozen-lockfile
yarn test
npm install
npm run test
env:
CI: true

0 comments on commit ce4b706

Please sign in to comment.