Skip to content

chore(test): setup github workflow to monitor process state #549

chore(test): setup github workflow to monitor process state

chore(test): setup github workflow to monitor process state #549

Workflow file for this run

name: Build / Test / Evolve
on: [push, workflow_dispatch]
jobs:
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- run: yarn --frozen-lockfile
- run: yarn build
- run: yarn test:integration
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Check out repository code
- name: Setup Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: '5.3' # Specify the Lua version you need
- name: Setup LuaRocks
uses: leafo/gh-actions-luarocks@v4.3.0
- name: Install Busted
run: luarocks install ar-io-ao-0.1-1.rockspec
- name: Run Busted Tests
run: busted . && luacov
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/luacov.report.out
sdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- run: git clone -b alpha https://github.com/ar-io/ar-io-sdk.git
- run: yarn
working-directory: ./ar-io-sdk
- run: yarn test:e2e
working-directory: ./ar-io-sdk
evolve:
runs-on: ubuntu-latest
needs: [integration, unit, sdk]
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main'
environment: ${{ github.ref_name }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- run: yarn --frozen-lockfile
- run: yarn evolve
env:
WALLET: ${{ secrets.WALLET }}
IO_NETWORK_PROCESS_ID: ${{ vars.IO_NETWORK_PROCESS_ID }}