Skip to content

add github actions yml #11

add github actions yml

add github actions yml #11

Workflow file for this run

name: offline tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- uses: jetli/[email protected]
with:
version: 'latest'
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '19.x'
- run: npm install
- run: npm run build-full
- run: npm test offline node
if: always()
- run: find ${GITHUB_WORKSPACE} -name "report.txt" -exec cp {} ${GITHUB_WORKSPACE}/reports \;
if: always()
- name: Upload report.txt files
uses: actions/upload-artifact@v3
if: always()
with:
name: report-files
path: ${GITHUB_WORKSPACE}/reports