From 05a7aa8702df86052601182a0df585c59e6b51cf Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sun, 4 Dec 2022 21:49:47 +0300 Subject: [PATCH] Add test workflow --- .github/workflows/deploy-docs.yml | 2 +- .github/workflows/test.yml | 20 ++++++++++++++++++++ .github/workflows/verify-formatting.yml | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index e8a2d6f..551490f 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -43,6 +43,6 @@ jobs: git config user.name "GitHub Actions" git config user.email "actions@users.noreply.github.com" - git add . + git add ./ git commit -m "Deploy bonfire.v docs" git push git@github.com:RGBCube/rgbcube.github.io master diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..89d8e22 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,20 @@ +name: Test + +on: + - pull_request + - push + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Set Up V + uses: vlang/setup-v@v1.1 + with: + check-latest: true + + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Test + run: v test ./ diff --git a/.github/workflows/verify-formatting.yml b/.github/workflows/verify-formatting.yml index 89e8475..feb2fd0 100644 --- a/.github/workflows/verify-formatting.yml +++ b/.github/workflows/verify-formatting.yml @@ -17,4 +17,4 @@ jobs: uses: actions/checkout@v3 - name: Verify That The Code Is Formatted - run: v fmt -verify . + run: v fmt -verify ./