Skip to content

fix(actions): only act on push #3

fix(actions): only act on push

fix(actions): only act on push #3

name: Build and Test
on: [push]
jobs:
# TODO: add unit tests using bused
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4.0.2
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- run: yarn --frozen-lockfile
- run: yarn aos:build
- run: yarn test
evolve:
# Run on main branch only
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs: integration
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4.0.2
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- run: yarn --frozen-lockfile
- run: yarn evolve
env:
WALLET: ${{ secrets.WALLET }}
REGISTRY_ID: ${{ secrets.REGISTRY_ID }}