Skip to content

Merge branch 'main' of https://github.com/frontendnetwork/vegancheck-… #262

Merge branch 'main' of https://github.com/frontendnetwork/vegancheck-…

Merge branch 'main' of https://github.com/frontendnetwork/vegancheck-… #262

Workflow file for this run

name: Run tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
install:
runs-on: ubuntu-latest
environment:
name: commit tests
url: https://github.com/JokeNetwork/vegancheck-api-wrapper
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'latest'
- name: Cache node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
test:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'latest'
- name: Cache node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm test