Merge pull request #35 from useLiquidOps/feat/distributor #207
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run Tests | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| name: Build project | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Install ao | |
| run: curl -L https://install_ao.arweave.net | bash | |
| - name: Build module | |
| run: | | |
| cd src | |
| $HOME/.ao/bin/ao build | |
| cd .. | |
| - name: Temporarily save ao module | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ao-module-artifact | |
| path: src/process.wasm | |
| retention-days: 1 | |
| test: | |
| name: Run integration tests | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Retrive ao module | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: ao-module-artifact | |
| path: src | |
| - name: Setup Node | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: "18" | |
| - name: Install dependencies | |
| run: npm i | |
| - name: Run tests | |
| run: npm test |