1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00
docs/.github/workflows/ci.yml

38 lines
763 B
YAML
Raw Normal View History

name: 'CI'
on:
push:
branches:
2022-03-30 12:17:34 +02:00
- main
- v4
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 }}