From fd43f537b1a2480f3a2f3aeececcbc727b30f77c Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 12 Sep 2023 00:14:42 -0500 Subject: [PATCH] add testing workflow --- .github/workflows/test.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..7ef29e3 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: 🧪 Run Tests + +on: + workflow_call: + workflow_dispatch: + push: + +jobs: + build-artifact: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Cache nimble + id: cache-nimble + uses: actions/cache@v3 + with: + path: ~/.nimble + key: "${{ runner.os }}-nimble-${{ hashFiles('*.nimble', '*.lock') }}" + restore-keys: | + ${{ runner.os }}-nimble- + + - uses: jiro4989/setup-nim-action@v1 + with: + nim-version: 2.0.0 + + - name: Run Tests + run: nimble test +