From 9e45b13507d086abca2d041daa4c7044d5c9cd1c Mon Sep 17 00:00:00 2001 From: Akshar Patel Date: Sat, 30 Mar 2024 02:19:38 +0000 Subject: [PATCH] feat: Add GitHub actions to run languages tests GitHub will now run all tests on pull requests --- * Closes #12 --- --- .github/workflows/test-languages.yaml | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/test-languages.yaml diff --git a/.github/workflows/test-languages.yaml b/.github/workflows/test-languages.yaml new file mode 100644 index 0000000..e2543ea --- /dev/null +++ b/.github/workflows/test-languages.yaml @@ -0,0 +1,33 @@ +--- +name: Test Languages + +on: + pull_request: + +jobs: + build: + name: Test Languages + runs-on: ubuntu-latest + steps: + - + name: Checkout PLCC + uses: actions/checkout@v3 + with: + repository: ourPLCC/plcc + - + name: Build test image + uses: docker/build-push-action@v4 + with: + context: . + file: ./containers/plcc/Dockerfile + tags: test-image:latest + push: false + - + name: Test Languages + uses: addnab/docker-run-action@v3 + with: + image: test-image:latest + run: | + git clone https://github.com/ourPLCC/languages.git + ./languages/bin/test.bash + rm -rf languages \ No newline at end of file