Skip to content

Commit

Permalink
chore: add ci to run against samples
Browse files Browse the repository at this point in the history
  • Loading branch information
giancarlopro committed Sep 10, 2023
1 parent b6ba806 commit d711046
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/run_rinha_samples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Docker Build and Run

on:
push:
branches:
- main # or whichever branch you want this to run on

jobs:
build_and_run:
runs-on: ubuntu-latest
steps:
- name: Checkout current repository
uses: actions/checkout@v2
- name: Build Docker image
run: |
docker build -t rinha-c-interpreter .
- name: Clone rinha-de-compiler repository
run: git clone https://github.com/aripiprazole/rinha-de-compiler rinha-de-compiler
- name: Run Docker image with JSON files
run: |
for json_file in rinha-de-compiler/files/*.json; do
echo "Running with $json_file..."
docker run --rm -v $PWD/$json_file:/var/rinha/source.rinha.json rinha-c-interpreter
done

0 comments on commit d711046

Please sign in to comment.