1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-02 08:20:22 +01:00
docs/.github/workflows/ci.yml

37 lines
752 B
YAML
Raw Normal View History

name: 'CI'
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
2021-05-25 14:08:48 +02:00
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Cache node modules
2021-05-25 14:08:48 +02:00
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
2021-05-25 14:08:48 +02:00
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-
- run: npm ci
- run: npm test
- run: npm run build
2021-01-26 16:06:35 +01:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}