mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-06-17 10:03:15 +02:00
Matthias Kretschmann
63780c0a16
* run against Node.js v16 * bump node-sass, fresh package-lock.json * legacy-peer-deps * remove gatsby-remark-github * downgrade node-sass to v6.0.1
38 lines
782 B
YAML
38 lines
782 B
YAML
name: 'CI'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- v3
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '16'
|
|
|
|
- name: Cache node modules
|
|
uses: actions/cache@v3
|
|
env:
|
|
cache-name: cache-node-modules
|
|
with:
|
|
path: ~/.npm
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-
|
|
|
|
- run: npm ci --legacy-peer-deps
|
|
- run: npm test
|
|
- run: npm run build
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|