Skip to content

Field Test

Field Test #14

Workflow file for this run

name: Field Test
on: workflow_dispatch
jobs:
prepare-cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/cache@v4
id: node_modules_cache
with:
path: "node_modules"
key: ${{ hashFiles('package-lock.json') }}
- if: ${{ steps.node_modules_cache.outputs.cache-hit != 'true' }}
run: npm ci
test:
runs-on: ubuntu-latest
needs: prepare-cache
strategy:
matrix:
template:
- typescript
- redux
- minimal
- solidity
- react-declarative
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/cache@v4
with:
path: "node_modules"
key: ${{ hashFiles('package-lock.json') }}
- run: npm run build
- run: npx --yes create-react-app projects/${{ matrix.template }} --template ${{ matrix.template }}
- run: |
cd projects/${{ matrix.template }}
node ../../bin/viject.js
npm install
npm run build