Skip to content

Replicate agoric-sdk config #3

Replicate agoric-sdk config

Replicate agoric-sdk config #3

Workflow file for this run

name: Normal tests
on:
pull_request:
merge_group:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
normal-test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Get the behavior from the PR description
id: get-behavior
uses: actions/github-script@v6
with:
result-encoding: string
script: |
let behavior = '{}';
if (context.payload.pull_request) {
const { body } = context.payload.pull_request;
const regex = /^\#normal-test:\s+(\S+)/m;
const result = regex.exec(body);
if (result) {
behavior = result[1];
}
}
console.log(behavior);
return behavior;
- name: run normal test
run: |
sleep ${{ fromJSON(steps.get-behavior.outputs.result).sleep || 45 }}
exit ${{ fromJSON(steps.get-behavior.outputs.result).exitCode || 0 }}