Skip to content

Merge pull request #6 from livepeer/sk/code-samples #16

Merge pull request #6 from livepeer/sk/code-samples

Merge pull request #6 from livepeer/sk/code-samples #16

Workflow file for this run

name: Tests CI
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x] # You can specify multiple Node.js versions to test against
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build the project
run: npm run build --if-present
- name: Run tests
run: npm test
- name: Upload Test Results
uses: actions/upload-artifact@v2
if: failure()
with:
name: test-results
path: ./tests/reports/
if-no-files-found: error