Skip to content

Add Poster - ERC1155 contract #42

Add Poster - ERC1155 contract

Add Poster - ERC1155 contract #42

Workflow file for this run

name: GitHub CI
on:
pull_request:
branches:
- '*'
push:
branches:
- master
jobs:
validate-and-test:
name: Validate and Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
# macOS-latest
env:
ELECTRON_CACHE: $HOME/.cache/electron
ELECTRON_BUILDER_CACHE: $HOME/.cache/electron-builder
steps:
- name: Retrieves project from the git branch
uses: actions/checkout@v4
- name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
id: nvm
- name: Setup node ${{ steps.nvm.outputs.NVMRC }}
uses: actions/setup-node@v4
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- run: node --version; npm --version; yarn --version
- name: Cache node modules
id: cache
uses: actions/cache@v4
with:
path: node_modules
## Check cache based on yarn.lock hashfile
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
## If no cache is found, install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
- name: yarn validate
run: yarn validate
- name: yarn test:coverage
run: yarn test:coverage --maxWorkers=2
- name: CodeCov
uses: codecov/codecov-action@v5
standalone-build:
name: Standalone Build
runs-on: ubuntu-latest
steps:
- name: Retrieves project from the git branch
uses: actions/checkout@v4
- name: Retrieve node version from .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat package.json | grep '\"node\":' | sed 's/^ *//;s/ *$//;s/\"node\":\ \"//;s/\",//')"
id: nvm
- name: Setup node ${{ steps.nvm.outputs.NVMRC }}
uses: actions/setup-node@v4
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: yarn build
run: yarn build
- name: Zip standalone build folder
run: zip -r dist/web/standalone_pyrus.zip dist/web/
- name: 'Save standalone_pyrus.zip to artifacts'
uses: actions/upload-artifact@v4
with:
name: 'standalone_pyrus'
path: 'dist/web/standalone_pyrus.zip'