Skip to content

dyne/restroom-github-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This GitHub Action starts a service with the restroom middlewares port 3000.

This is useful when running tests against restroom contracts

Example

on: [push]

jobs:
  restroom_job:
    runs-on: ubuntu-latest
    name: Start restroom and request a simple contract
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Start restroom
        uses: dyne/restroom-github-action@v1
        with:
          restroom-contracts: "${{ github.workspace }}/contracts"
          restroom-files: "${{ github.workspace }}/"
      - name: Try to fetch
        run: curl http://localhost:3000/api/test